Beispiel #1
0
 /// <summary>
 /// Create a right-bounded range that contains all elements less than or equal to the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns>A new range.</returns>
 public static FInt32Range AtMost(int value)
 {
     return(new FInt32Range(FInt32RangeBound.Open(), FInt32RangeBound.Inclusive(value)));
 }
Beispiel #2
0
 /// <summary>
 /// Create a right-bounded range that contains all elements less than the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns>A new range.</returns>
 public static FInt32Range LessThan(int value)
 {
     return(new FInt32Range(FInt32RangeBound.Open(), FInt32RangeBound.Exclusive(value)));
 }
Beispiel #3
0
 /// <summary>
 /// Create an unbounded (open) range that contains all elements of the domain.
 /// </summary>
 /// <returns>A new range.</returns>
 public static FInt32Range All()
 {
     return(new FInt32Range(FInt32RangeBound.Open(), FInt32RangeBound.Open()));
 }