diff --git a/src/DotRecast.Core/Collections/CollectionExtensions.cs b/src/DotRecast.Core/Collections/CollectionExtensions.cs index 82f5f5c..c610899 100644 --- a/src/DotRecast.Core/Collections/CollectionExtensions.cs +++ b/src/DotRecast.Core/Collections/CollectionExtensions.cs @@ -45,5 +45,11 @@ namespace DotRecast.Core.Collections (list[k], list[n]) = (list[n], list[k]); } } + + public static void AddRange(this IList list, Span span) + { + foreach (var i in span) + list.Add(i); + } } } \ No newline at end of file