public static void NotNullNorEmpty( [AllowNull, SDC.NotNull] string?arg, [InvokerParameterName] string argName) { if (arg.IsNullOrEmpty()) { throw CodeExceptions.ArgumentNullOrEmpty(argName); } }
public static void NotNullNorEmpty( [CanBeNull] string arg, [NotNull, InvokerParameterName] string argName) { if (string.IsNullOrEmpty(arg)) { throw CodeExceptions.ArgumentNullOrEmpty(argName); } }
public static void NotNullNorEmpty( [CanBeNull, AssertionCondition(AssertionConditionType.IS_NOT_NULL)] string arg, [NotNull, InvokerParameterName] string argName) { if (string.IsNullOrEmpty(arg)) { throw CodeExceptions.ArgumentNullOrEmpty(argName); } }