Beispiel #1
0
 public static long AtMost(this long value, long maxValue)
 {
     return value.BullyIntoRange(Int64.MinValue, maxValue);
 }
Beispiel #2
0
 public static long AtLeast(this long value, long minValue)
 {
     return value.BullyIntoRange(minValue, Int64.MaxValue);
 }
Beispiel #3
0
 public static int AtMost(this int value, int maxValue)
 {
     return value.BullyIntoRange(Int32.MinValue, maxValue);
 }
Beispiel #4
0
 public static int AtLeast(this int value, int minValue)
 {
     return value.BullyIntoRange(minValue, Int32.MaxValue);
 }