コード例 #1
0
 public static Decimal BetweenOrDefault(this Decimal num, Decimal lower, Decimal upper, Boolean inclusive = false)
 {
     return(num.Between(lower, upper, inclusive) ? num : default(Decimal));
 }