Exemple #1
0
 /// <summary>
 /// 检查 Guid 是否为空
 /// </summary>
 /// <param name="argument"></param>
 /// <param name="argumentName"></param>
 /// <param name="message"></param>
 public static void IsNotEmpty(Guid argument, string argumentName, string message = null)
 {
     AssertionJudgment.Require2Validation <ArgumentNullException>(
         !GuidJudgment.IsNullOrEmpty(argument),
         argumentName, message ?? $"{nameof(argument)} can not be null or empty.");
 }
Exemple #2
0
 /// <summary>
 /// 是否为空
 /// </summary>
 /// <param name="guid"> 值 </param>
 public static bool IsNullOrEmpty(this Guid guid) => GuidJudgment.IsNullOrEmpty(guid);