ISEbd-21 Melnikov I. O. Lab work 08 Base #11

Closed
Igor-Melnikov wants to merge 7 commits from LabWork08 into LabWork07
Showing only changes of commit 86f03f05c5 - Show all commits

View File

@ -28,12 +28,9 @@
/// <returns></returns>
public int Insert(T locomotive)
{
for (int i = 0; i < _places.Count; i++)
if (_places.Contains(locomotive))
{
if (locomotive.Equals(_places[i]))
{
throw new NotUniqueObjectException();
}
throw new NotUniqueObjectException();
}
if (_places.Count == 0)
{