Пример #1
0
 public static void AssureArgumentNotNull <T>([AssertionCondition(AssertionConditionType.IS_NOT_NULL)] T value, string argumentName)
 {
     DbC.AssureArgumentNotNull(value, argumentName, "DbC: argument {0} may not be null", argumentName);
 }
Пример #2
0
 public static T DbC_AssureArgumentNotNull <T>([AssertionCondition(AssertionConditionType.IS_NOT_NULL)] this T value, string argumentName)
 {
     DbC.AssureArgumentNotNull(value, argumentName);
     return(value);
 }
Пример #3
0
 public static T DbC_AssureArgumentNotNull <T>([AssertionCondition(AssertionConditionType.IS_NOT_NULL)] this T value, string argumentName, string message, params object[] parameters)
 {
     DbC.AssureArgumentNotNull(value, argumentName, message, parameters);
     return(value);
 }