Beispiel #1
0
 public static void IfEmpty(
     [CanBeNull, AssertionCondition(AssertionConditionType.IS_NOT_NULL)] string value,
     [NotNull][System.Diagnostics.CodeAnalysis.NotNull] string name)
 {
     Fail.RequiresArgumentName(name);
     Fail.IfEmpty(value, Violation.WhenEmpty(name));
 }
 public static DateTime FailIfEmpty(this DateTime value, [NotNull][System.Diagnostics.CodeAnalysis.NotNull] string name)
 {
     Fail.IfEmpty(value, name);
     return(value);
 }
Beispiel #3
0
 public static void IfArgumentEmpty(Guid value, [NotNull] string argumentName)
 {
     Fail.RequiresArgumentName(argumentName);
     Fail.IfEmpty(value, Violation.WhenGuidArgumentIsEmpty(argumentName));
 }