Лабораторная работа №6 (исправленная)
This commit is contained in:
parent
b676330c29
commit
07571002a4
@ -181,9 +181,9 @@ public class StorageCollection<T>
|
||||
string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string elem in set)
|
||||
{
|
||||
if (elem?.CreateDrawningExcavatorEmpty() is T ship)
|
||||
if (elem?.CreateDrawningExcavatorEmpty() is T excavator)
|
||||
{
|
||||
if (collection.Insert(ship) == -1)
|
||||
if (collection.Insert(excavator) == -1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user