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); }
public static void IfArgumentEmpty(Guid value, [NotNull] string argumentName) { Fail.RequiresArgumentName(argumentName); Fail.IfEmpty(value, Violation.WhenGuidArgumentIsEmpty(argumentName)); }