ISEbd-12_Osyagina_A.A._Simple_LabWork06 #6
@ -146,9 +146,9 @@ public class StorageCollection<T>
|
||||
string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string elem in set)
|
||||
{
|
||||
if (elem?.CreateDrawningBoat() is T militaryAircraft)
|
||||
if (elem?.CreateDrawningBoat() is T boat)
|
||||
{
|
||||
if (collection.Insert(militaryAircraft) == -1)
|
||||
if (collection.Insert(boat) == -1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user