Putilin P. A. LabWork 7 #8
@ -46,7 +46,7 @@
|
||||
/// <param name="airplane">Добавляемый самолет</param>
|
||||
/// <param name="position">Позиция</param>
|
||||
/// <returns></returns>
|
||||
public int Insert(T warplane, int position)
|
||||
public int Insert(T airplane, int position)
|
||||
{
|
||||
if (Count == _maxCount)
|
||||
throw new StorageOverflowException(_maxCount);
|
||||
@ -54,7 +54,7 @@
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
_places.Insert(position, warplane);
|
||||
_places.Insert(position, airplane);
|
||||
return position;
|
||||
}
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user