PIbd-13_YazykovaA.I._LABA07_Simple #7
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user