Почищен код 1
This commit is contained in:
parent
3f65961713
commit
88b702d5b5
@ -50,7 +50,7 @@ namespace Locomotive
|
|||||||
throw new LocomotiveNotFoundException(position);
|
throw new LocomotiveNotFoundException(position);
|
||||||
}
|
}
|
||||||
T result = _places[position];
|
T result = _places[position];
|
||||||
_places[position] = null; // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! РАНЬШЕ REMOVE
|
_places[position] = null;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
// Индексатор
|
// Индексатор
|
||||||
@ -72,8 +72,6 @@ namespace Locomotive
|
|||||||
{
|
{
|
||||||
foreach (var locomotive in _places)
|
foreach (var locomotive in _places)
|
||||||
{
|
{
|
||||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! РАНЬШЕ ВОЗВРАЩАЛОСЬ ТОЛЬКО ЕСЛИ НЕ НУЛЛ
|
|
||||||
|
|
||||||
yield return locomotive;
|
yield return locomotive;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user