коммит

This commit is contained in:
AnnaLioness 2023-11-03 23:51:37 +04:00
parent 9ab0f8fa63
commit 5bb1d850e7

View File

@ -135,21 +135,10 @@ namespace Lab1ContainersShip
}
set
{
/*if ((position < _places.Count && position >= 0) && _places.Count < _maxCount)
{
_places[position] = value;
}
else
{
return;
}*/
{
Insert(value, position);
// TODO проверка позиции
// TODO проверка свободных мест в списке
// TODO вставка в список по позиции
}
}
public IEnumerable<T> GetShips(int? maxCars = null)