правка

This commit is contained in:
Evgeny Egov 2024-01-06 20:27:29 +04:00
parent e9cd7c75ce
commit e1a7ba4fd4
Failed to extract signature

View File

@ -26,7 +26,14 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
{ {
if (value > 0) if (value > 0)
{ {
_collection = new T?[value]; if (_collection.Length > 0)
{
Array.Resize(ref _collection, value);
}
else
{
_collection = new T?[value];
}
} }
} }
} }