public static void NotNullNorWhiteSpace( [AllowNull, SDC.NotNull] string?arg, [InvokerParameterName] string argName) { if (arg.IsNullOrWhiteSpace()) { throw CodeExceptions.ArgumentNullOrWhiteSpace(argName); } }
public static void NotNullNorWhiteSpace( [CanBeNull] string arg, [NotNull, InvokerParameterName] string argName) { if (StringEx.IsNullOrWhiteSpace(arg)) { throw CodeExceptions.ArgumentNullOrWhiteSpace(argName); } }
public static void NotNullNorWhiteSpace( [CanBeNull, AssertionCondition(AssertionConditionType.IS_NOT_NULL)] string arg, [NotNull, InvokerParameterName] string argName) { if (arg.IsNullOrWhiteSpace()) { throw CodeExceptions.ArgumentNullOrWhiteSpace(argName); } }