Правлен класс SetGeneric
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user