PIBD-12_Morozov_D.V. LabWork№5 #16
@ -10,7 +10,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
|
||||
/// <summary>
|
||||
/// Массив объектов, которые храним
|
||||
/// </summary>
|
||||
private T?[] _collection;
|
||||
private T?[] _collection;
|
||||
|
||||
public int Count => _collection.Length;
|
||||
|
||||
@ -91,7 +91,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
|
||||
{
|
||||
if (position < 0 || position >= Count)
|
||||
{
|
||||
return null ;
|
||||
return null;
|
||||
}
|
||||
T obj = _collection[position];
|
||||
_collection[position] = null;
|
||||
|
Loading…
Reference in New Issue
Block a user