From 51836226ac7de257b413c2b285d10c4fd5ee4fa6 Mon Sep 17 00:00:00 2001 From: Anastasia Yazykova Date: Mon, 10 Jun 2024 00:16:01 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionGenericObjects/StorageCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TrolleybusProject/TrolleybusProject/CollectionGenericObjects/StorageCollection.cs b/TrolleybusProject/TrolleybusProject/CollectionGenericObjects/StorageCollection.cs index 27fb31c..25bb826 100644 --- a/TrolleybusProject/TrolleybusProject/CollectionGenericObjects/StorageCollection.cs +++ b/TrolleybusProject/TrolleybusProject/CollectionGenericObjects/StorageCollection.cs @@ -172,11 +172,11 @@ public class StorageCollection 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]);