示例#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);
 }