Правлен класс SetGeneric

This commit is contained in:
Никита Потапов 2023-10-22 15:05:34 +04:00
parent 3194d59c46
commit 89c04361e4

View File

@ -66,7 +66,7 @@ namespace ProjectStormtrooper
public T? Remove(int position)
{
// Проверка позиции
if (Count == 0 || position < 0 || position >= _maxCount)
if (position < 0 || position >= Count)
{
return null;
}
@ -85,7 +85,7 @@ namespace ProjectStormtrooper
get
{
// Проверка позиции
if (position < 0 || position >= _maxCount)
if (position < 0 || position >= Count)
{
return null;
}