правка
This commit is contained in:
parent
e9cd7c75ce
commit
e1a7ba4fd4
@ -25,11 +25,18 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
|
||||
set
|
||||
{
|
||||
if (value > 0)
|
||||
{
|
||||
if (_collection.Length > 0)
|
||||
{
|
||||
Array.Resize(ref _collection, value);
|
||||
}
|
||||
else
|
||||
{
|
||||
_collection = new T?[value];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public CollectionType GetCollectionType => CollectionType.Massive;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user