изменения
This commit is contained in:
parent
3f1df7742f
commit
58e4cce669
@ -23,12 +23,7 @@ namespace Warship
|
|||||||
|
|
||||||
public int Insert(T warship)
|
public int Insert(T warship)
|
||||||
{
|
{
|
||||||
if (Count >= _maxCount)
|
return Insert(warship, 0);
|
||||||
throw new StorageOverflowException(_maxCount);
|
|
||||||
|
|
||||||
_places.Insert(0, warship);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Insert(T warship, int position)
|
public int Insert(T warship, int position)
|
||||||
|
Loading…
Reference in New Issue
Block a user