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

Closed
AnnaLioness wants to merge 8 commits from лаб5 into лаб4
Showing only changes of commit d81ae716ab - Show all commits

View File

@ -109,7 +109,6 @@ namespace Lab1ContainersShip
/// <returns></returns> /// <returns></returns>
public T Get(int position) public T Get(int position)
{ {
// TODO проверка позиции
if(position < _places.Count && position >= 0) if(position < _places.Count && position >= 0)
{ {
return _places[position]; return _places[position];
@ -131,12 +130,19 @@ namespace Lab1ContainersShip
{ {
return null; return null;
} }
// TODO проверка позиции
} }
set set
{ {
{
_places[position] = value;
}
else
{
return;
}*/
Insert(value, position); Insert(value, position);
} }