1
0
Fork 0
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:
Brian Fiete 2020-08-17 05:42:01 -07:00
parent 044f15629d
commit 73e260c1d5

View file

@ -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