PIBD-12_Morozov_D.V. LabWork№4 #13
@ -70,7 +70,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user