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

Closed
MorozovDanil wants to merge 11 commits from Lab5_base into Lab4_base
2 changed files with 2 additions and 2 deletions
Showing only changes of commit bb1dbb75ad - Show all commits

View File

@ -71,7 +71,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
public T Remove(int position)
{
if (position >= Count || position < 0) return null;
T obj = _collection[position];
T? obj = _collection[position];
_collection.RemoveAt(position);
return obj;

View File

@ -93,7 +93,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
{
return null ;
}
T obj = _collection[position];
T? obj = _collection[position];
_collection[position] = null;
return obj;
}