/ src / modules / imageresizer / ui / Extensions / ICollectionExtensions.cs
ICollectionExtensions.cs
 1  #pragma warning disable IDE0073
 2  // Copyright (c) Brice Lambson
 3  // The Brice Lambson licenses this file to you under the MIT license.
 4  // See the LICENSE file in the project root for more information.  Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
 5  #pragma warning restore IDE0073
 6  
 7  namespace System.Collections.Generic
 8  {
 9      internal static class ICollectionExtensions
10      {
11          public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> items)
12          {
13              foreach (var item in items)
14              {
15                  collection.Add(item);
16              }
17          }
18      }
19  }