PIbd-13_YazykovaA.I._LABA07_Simple #7

Closed
squ_squ wants to merge 6 commits from Laba07 into Laba06
Showing only changes of commit 51836226ac - Show all commits

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