PIBD-13_Baryshev_D.A._LabWork06_Base #6
@ -177,9 +177,9 @@ public class StorageCollection<T>
|
||||
string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string elem in set)
|
||||
{
|
||||
if (elem?.CreateDrawningTruck() is T warship)
|
||||
if (elem?.CreateDrawningTruck() is T truck)
|
||||
{
|
||||
if (collection.Insert(warship) == -1)
|
||||
if (collection.Insert(truck) == -1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user