This commit is contained in:
MorozovDanil 2024-04-18 22:21:24 +04:00
parent f0555a2a64
commit 6563fd4bec

View File

@ -10,7 +10,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
/// <summary> /// <summary>
/// Массив объектов, которые храним /// Массив объектов, которые храним
/// </summary> /// </summary>
private T?[] _collection; private T?[] _collection;
public int Count => _collection.Length; public int Count => _collection.Length;
@ -91,7 +91,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
{ {
if (position < 0 || position >= Count) if (position < 0 || position >= Count)
{ {
return null ; return null;
} }
T obj = _collection[position]; T obj = _collection[position];
_collection[position] = null; _collection[position] = null;