PIBD-13_Baryshev_D.A._LabWork06_Base #6

Closed
xysiboi wants to merge 4 commits from LabWork06 into LabWork05
Showing only changes of commit 6c5adf2186 - Show all commits

View File

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