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