фикс в ?ов
This commit is contained in:
parent
17f72fc0ae
commit
bb1dbb75ad
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user