PIBD-12_Morozov_D.V. LabWork№5 #16

Closed
MorozovDanil wants to merge 11 commits from Lab5_base into Lab4_base
Showing only changes of commit 6563fd4bec - Show all commits

View File

@ -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;