mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 17:48:01 +02:00
Added append ctor taking Span<T>
This commit is contained in:
parent
ca83467e1b
commit
2c439092c3
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ namespace System.Collections
|
|||
Add(item);
|
||||
}
|
||||
|
||||
[AllowAppend]
|
||||
public this(Span<T> span) : this(span.Length)
|
||||
{
|
||||
AddRange(span);
|
||||
}
|
||||
|
||||
[AllowAppend]
|
||||
public this(int capacity)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue