This commit is contained in:
elizaveta 2024-10-08 13:47:11 +04:00
parent 158ee34849
commit 36d6171669
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
{
if (value > 0)
{
_maxCount = value - 1;
_maxCount = value;
}
}
}

View File

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