Bondarenko M.S. Lab Work 7 #14
@ -36,7 +36,7 @@ namespace WarmlyShip
|
||||
{
|
||||
if (position >= _maxCount || position >= _places.Count) throw new ShipNotFoundException(position);
|
||||
T DelElement = _places[position];
|
||||
_places[position] = null;
|
||||
_places.Remove(DelElement);
|
||||
return DelElement;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user