фикс в ?ов

This commit is contained in:
MorozovDanil 2024-04-15 14:53:44 +04:00
parent 17f72fc0ae
commit bb1dbb75ad
2 changed files with 2 additions and 2 deletions

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