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

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