1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 01:58:00 +02:00

Added append ctor taking Span<T>

This commit is contained in:
Brian Fiete 2022-08-03 08:38:39 -07:00
parent ca83467e1b
commit 2c439092c3

View file

@ -71,6 +71,12 @@ namespace System.Collections
Add(item); Add(item);
} }
[AllowAppend]
public this(Span<T> span) : this(span.Length)
{
AddRange(span);
}
[AllowAppend] [AllowAppend]
public this(int capacity) public this(int capacity)
{ {