Beispiel #1
0
 /// <summary>
 /// 检查集合是否为空
 /// </summary>
 /// <param name="argument"></param>
 /// <param name="argumentName"></param>
 /// <param name="message"></param>
 public static void IsNotNull(IEnumerable argument, string argumentName, string message = null)
 {
     AssertionJudgment.Require2Validation <ArgumentNullException>(
         !CollectionJudgment.IsNull(argument),
         argumentName, message ?? $"{nameof(argument)} can not be null.");
 }
 /// <summary>
 /// 判断集合是否为空
 /// </summary>
 /// <param name="source"></param>
 /// <returns></returns>
 public static bool IsNull(this IEnumerable source) => CollectionJudgment.IsNull(source);