загрузка

This commit is contained in:
Anastasia Yazykova 2024-06-10 00:16:01 +04:00
parent d4da4c02ae
commit 51836226ac

View File

@ -172,11 +172,11 @@ public class StorageCollection<T>
StringSplitOptions.RemoveEmptyEntries);
foreach (string elem in set)
{
if (elem?.CreateDrawningBus() is T boat)
if (elem?.CreateDrawningBus() is T bus )
{
try
{
if (collection.Insert(boat) < 0)
if (collection.Insert(bus) < 0)
{
throw new InvalidOperationException("Объект не удалось добавить в коллекцию: " + record[3]);