Mochalov D.V. LabWork07 #7

Closed
b0n3l3sS wants to merge 4 commits from LabWork07 into LabWork06
Showing only changes of commit 88b702d5b5 - Show all commits

View File

@ -50,7 +50,7 @@ namespace Locomotive
throw new LocomotiveNotFoundException(position);
}
T result = _places[position];
_places[position] = null; // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! РАНЬШЕ REMOVE
_places[position] = null;
return result;
}
// Индексатор
@ -72,8 +72,6 @@ namespace Locomotive
{
foreach (var locomotive in _places)
{
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! РАНЬШЕ ВОЗВРАЩАЛОСЬ ТОЛЬКО ЕСЛИ НЕ НУЛЛ
yield return locomotive;
}