Минорные изменения
This commit is contained in:
parent
5a6e81bb56
commit
c702afd01e
@ -192,11 +192,11 @@ where T : DrawningLocomotive
|
||||
string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string elem in set)
|
||||
{
|
||||
if (elem?.CreateDrawningLocomotive() is T truck)
|
||||
if (elem?.CreateDrawningLocomotive() is T locomotive)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (collection.Insert(truck) == -1)
|
||||
if (collection.Insert(locomotive) == -1)
|
||||
{
|
||||
throw new Exception("Объект не удалось добавить в коллекцию: " + record[3]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user