1 Commits
laba7 ... laba5

Author SHA1 Message Date
54c2da98b6 изменения 2023-11-29 19:49:43 +04:00

View File

@@ -69,10 +69,8 @@ namespace ProjectBomber.Generics
public bool Remove(int position) public bool Remove(int position)
{ {
/// Проверка позиции /// Проверка позиции
if (position < 0 || position >= _places.Count) if ((position < 0) || (position > _maxCount)) return false;
return false; _places.RemoveAt(position);
/// Удаление объекта из массива, присвоив элементу массива значение null
_places[position] = null;
return true; return true;
} }
/// <summary> /// <summary>