private bool Equals(TimeSpanValue operand)
        {
            if (!IsAnswered || !operand.IsAnswered)
            {
                throw new InvalidOperationException();
            }

            return((_value == operand._value) && (_period == operand._period));
        }
예제 #2
0
 /// <summary>
 /// Static constructor required so static fields are always initialized
 /// </summary>
 static TimeSpanValue()
 {
     TimeSpanValue.Unanswered = new TimeSpanValue();
 }
예제 #3
0
        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();
 }