изменено
This commit is contained in:
parent
02400e9c3f
commit
22bd1063bb
@ -175,11 +175,11 @@ public class StorageCollection<T>
|
||||
string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string elem in set)
|
||||
{
|
||||
if (elem?.CreateDrawningExcavatorEmpty() is T excavator)
|
||||
if (elem?.CreateDrawningExcavatorEmpty() is T ship)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (collection.Insert(excavator) == -1)
|
||||
if (collection.Insert(ship) == -1)
|
||||
{
|
||||
throw new Exception("Объект не удалось добавить в коллекцию: " + record[3]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user