Malin D.V. Lab work 7 #7
@ -46,7 +46,7 @@ namespace WarmlyLocomotive
|
||||
{
|
||||
if (position < 0 || position > Count || _maxCount == Count)
|
||||
{
|
||||
throw new StorageOverflowException(Count);
|
||||
throw new StorageOverflowException(_maxCount);
|
||||
}
|
||||
_places.Insert(position, locomotive);
|
||||
return position;
|
||||
|
Loading…
Reference in New Issue
Block a user