예제 #1
0
파일: Code.cs 프로젝트: Kobart13/CodeJam
 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);
         }
     }
 }