fix AddRange to allow any type of Collection<>, not just List<>
This commit is contained in:
parent
9df55b9c08
commit
623402805b
@ -55,7 +55,7 @@ namespace MBS.Core.Collections.Generic
|
||||
return ((List<T>)(cacheOfT[obj][typeof(T)])).ToArray();
|
||||
}
|
||||
|
||||
public static void AddRange<T>(this IList<T> list, IEnumerable<T> items)
|
||||
public static void AddRange<T>(this ICollection<T> list, IEnumerable<T> items)
|
||||
{
|
||||
foreach (T item in items)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user