Пример #1
0
 /// <summary>
 /// Indicates whether this annual date is earlier, later or the same as another one.
 /// See the type documentation for a description of ordering semantics.
 /// </summary>
 /// <param name="other">The other annual date to compare this one with</param>
 /// <returns>A value less than zero if this annual date is earlier than <paramref name="other"/>;
 /// zero if this time is the same as <paramref name="other"/>; a value greater than zero if this annual date is
 /// later than <paramref name="other"/>.</returns>
 public int CompareTo(AnnualDate other) => value.CompareTo(other.value);
Пример #2
0
 /// <summary>
 /// Indicates whether this annual date is earlier, later or the same as another one.
 /// </summary>
 /// <param name="other">The other annual date to compare this one with</param>
 /// <returns>A value less than zero if this annual date is earlier than <paramref name="other"/>;
 /// zero if this time is the same as <paramref name="other"/>; a value greater than zero if this annual date is
 /// later than <paramref name="other"/>.</returns>
 public int CompareTo(AnnualDate other)
 {
     return(value.CompareTo(other.value));
 }