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