ISEbd-12_Osyagina_A.A._Simple_LabWork06 #6

Closed
Osyagina_Anna wants to merge 9 commits from LabWork06 into LabWork05
Showing only changes of commit 0e05120ff4 - Show all commits

View File

@ -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;
}