Изменения из 6 лабы

This commit is contained in:
Мария Котова 2024-05-15 12:19:35 +04:00
commit 34f66a56a3

View File

@ -175,7 +175,7 @@ public class StorageCollection<T>
string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries); string[] set = record[3].Split(_separatorItems, StringSplitOptions.RemoveEmptyEntries);
foreach (string elem in set) foreach (string elem in set)
{ {
if (elem?.CreateDrawningExcavatorEmpty() is T ship) if (elem?.CreateDrawningExcavatorEmpty() is T excavator)
{ {
try try
{ {