This commit is contained in:
mar-va 2024-05-21 11:49:40 +04:00
parent 6cc0b436dc
commit fa6661bfce

View File

@ -56,7 +56,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
public T? Get(int position) public T? Get(int position)
{ {
if (position < 0 || position >= Count) throw new PositionOutOfCollectionException(); if (position < 0 || position >= Count) throw new PositionOutOfCollectionException(position);
return _collection[position]; return _collection[position];
} }