Created
January 12, 2017 01:13
-
-
Save feliperomero3/3c464ec76b79094930b468952e1f0c15 to your computer and use it in GitHub Desktop.
.NET Extensions for ICollection<T>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AuditoriaIngresos.Helpers | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class CollectionExtension | |
{ | |
public static ICollection<T> AddRange<T>(this IEnumerable<T> list, ICollection<T> collection) | |
{ | |
foreach (T item in list) | |
{ | |
collection.Add(item); | |
} | |
return collection; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment