Лёвушкина Анаа, ПИбд-21, лаб4 простая #7

Closed
AnnaLioness wants to merge 2 commits from лаб4 into лаб3
Showing only changes of commit bec2383a81 - Show all commits

View File

@ -109,7 +109,6 @@ namespace Lab1ContainersShip
/// <returns></returns>
public T Get(int position)
{
// TODO проверка позиции
if(position < _places.Count && position >= 0)
{
return _places[position];
@ -131,25 +130,13 @@ namespace Lab1ContainersShip
{
return null;
}
// TODO проверка позиции
}
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)