фикс в листе

This commit is contained in:
MorozovDanil 2024-04-15 14:51:50 +04:00
parent 2174798ffb
commit 7bc3ac944f

View File

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