forked from mirror/DotRecast
CollectionExtensions.cs List<T>.AddRange(Span<T>)
This commit is contained in:
parent
dbc92a9aef
commit
2c6f6a50cc
|
@ -45,5 +45,11 @@ namespace DotRecast.Core.Collections
|
|||
(list[k], list[n]) = (list[n], list[k]);
|
||||
}
|
||||
}
|
||||
|
||||
public static void AddRange<T>(this IList<T> list, Span<T> span)
|
||||
{
|
||||
foreach (var i in span)
|
||||
list.Add(i);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue