Exemplo n.º 1
0
 public static void ItemNotNull <T>(
     [NotNull, InstantHandle] IEnumerable <T> arg,
     [NotNull, InvokerParameterName] string argName) where T : class
 {
     foreach (var item in arg)
     {
         if (item == null)
         {
             throw CodeExceptions.ArgumentItemNull(argName);
         }
     }
 }