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