PIbd-21 Yakovlev M.G. lab work 03 #3

Closed
YakovlevMaxim wants to merge 3 commits from Lab3SailBoat into Lab2SailBoat
Showing only changes of commit 4ff5aeaad7 - Show all commits

View File

@ -43,7 +43,7 @@ namespace SailBoat.Generics
}
if (_places[position] == null)
{
_places[position] = car;
_places[position] = boat;
return true;
}
int index = position;
@ -53,7 +53,7 @@ namespace SailBoat.Generics
{
_places[i] = _places[i - 1];
}
_places[position] = car;
_places[position] = boat;
return true;
}