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]);