From 623402805b12b11c6a32ef1db6848e7f5587b48c Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sun, 21 Jul 2024 22:37:57 -0400 Subject: [PATCH] fix AddRange to allow any type of Collection<>, not just List<> --- .../src/lib/MBS.Core/Collections/Generic/ExtensionMethods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-dotnet/src/lib/MBS.Core/Collections/Generic/ExtensionMethods.cs b/framework-dotnet/src/lib/MBS.Core/Collections/Generic/ExtensionMethods.cs index db03cbf..0b58403 100755 --- a/framework-dotnet/src/lib/MBS.Core/Collections/Generic/ExtensionMethods.cs +++ b/framework-dotnet/src/lib/MBS.Core/Collections/Generic/ExtensionMethods.cs @@ -55,7 +55,7 @@ namespace MBS.Core.Collections.Generic return ((List)(cacheOfT[obj][typeof(T)])).ToArray(); } - public static void AddRange(this IList list, IEnumerable items) + public static void AddRange(this ICollection list, IEnumerable items) { foreach (T item in items) {