LabWork08 Zacharchenko PIbd-21 #9

Closed
shadowik wants to merge 5 commits from LabWork08 into LabWork07
Showing only changes of commit 85f5d7f093 - Show all commits

View File

@ -29,7 +29,10 @@ namespace DoubleDeckerBus
public int Insert(T bus, int position)
{
// TODO Проверка на уникальность
if (_places.Contains(bus))
{
throw new ArgumentException("The same bus exist");
}
if (position < 0 || position >= _maxCount)
{