mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Added Count setter
This commit is contained in:
parent
044f15629d
commit
73e260c1d5
1 changed files with 13 additions and 0 deletions
|
@ -152,6 +152,19 @@ namespace System.Collections
|
|||
{
|
||||
return mSize;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (value <= mSize)
|
||||
{
|
||||
mSize = (.)value;
|
||||
}
|
||||
else
|
||||
{
|
||||
int addSize = value - mSize;
|
||||
Internal.MemSet(GrowUnitialized(addSize), 0, addSize * strideof(T));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsEmpty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue