예제 #1
0
 public static void RequireAtLeast <T>(this ICollection <T> argument, int number, string argumentName, string message = null)
 {
     CollGuard.ShouldContainAtLeast(argument, number, argumentName, message);
 }
예제 #2
0
 public static void Require(this IEnumerable argument, string argumentName, string message = null)
 {
     CollGuard.ShouldBeNotNull(argument, argumentName, message);
 }
예제 #3
0
 public static void Require <TKey, TValue>(this KeyValuePair <TKey, TValue> argument, string argumentName, string message = null)
 {
     CollGuard.ShouldBeNotNull(argument, argumentName, message);
 }