private bool Equals(TimeSpanValue operand) { if (!IsAnswered || !operand.IsAnswered) { throw new InvalidOperationException(); } return((_value == operand._value) && (_period == operand._period)); }
/// <summary> /// Static constructor required so static fields are always initialized /// </summary> static TimeSpanValue() { TimeSpanValue.Unanswered = new TimeSpanValue(); }
private bool Equals(TimeSpanValue operand) { if (!IsAnswered || !operand.IsAnswered) throw new InvalidOperationException(); return (_value == operand._value) && (_period == operand._period); }