Пример #1
0
 public static int Subtract(QuarterHour left, QuarterHour right) => left.OffsetFrom(right);
Пример #2
0
 public static QuarterHour Subtract(QuarterHour quarterHour, int numPeriods) => quarterHour.Offset(-numPeriods);
Пример #3
0
 public static QuarterHour Add(QuarterHour quarterHour, int numPeriods) => quarterHour.Offset(numPeriods);
Пример #4
0
 public int OffsetFrom(QuarterHour other)
 {
     return(_value - other._value);
 }
Пример #5
0
 public bool Equals(QuarterHour other)
 {
     // ReSharper disable once ImpureMethodCallOnReadonlyValueField
     return(_value.Equals(other._value));
 }
Пример #6
0
 public int CompareTo(QuarterHour other)
 {
     // ReSharper disable once ImpureMethodCallOnReadonlyValueField
     return(_value.CompareTo(other._value));
 }