Пример #1
0
 /// <summary>
 /// Returns a range that contains all values greater than or equal to <paramref name="endpoint"/>.
 /// </summary>
 public static Range <C> AtLeast <C>(C endpoint) where C : IComparable
 {
     return(new Range <C>(Cut.BelowValue(endpoint), Cut.AboveAll <C>()));
 }
Пример #2
0
 /// <summary>
 /// Returns a range that contains every value of type <typeparamref name="C"/>.
 /// </summary>
 public static Range <C> All <C>() where C : IComparable
 {
     return(new Range <C>(Cut.BelowAll <C>(), Cut.AboveAll <C>()));
 }
Пример #3
0
 /// <summary>
 /// Returns a range that contains all values strictly greater than <paramref name="endpoint"/>.
 /// </summary>
 public static Range <C> GreaterThan <C>(C endpoint) where C : IComparable
 {
     return(new Range <C>(Cut.AboveValue(endpoint), Cut.AboveAll <C>()));
 }