From 2174798ffb847123a230b27fafef3ac262f7c342 Mon Sep 17 00:00:00 2001 From: MorozovDanil Date: Mon, 15 Apr 2024 13:47:05 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=81=D0=B5,=20=D0=BB=D0=B0=D0=B1=D0=B0?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D1=81=D1=82=D1=8C=D1=8E=20?= =?UTF-8?q?=D1=81=D0=B4=D0=B0=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionGenericObjects/ListGenericObjects.cs | 2 +- .../CollectionGenericObjects/StorageCollection.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs b/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs index e1f1b2a..ea12df5 100644 --- a/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs +++ b/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs @@ -70,7 +70,7 @@ public class ListGenericObjects : ICollectionGenericObjects public T Remove(int position) { if (position >= Count || position < 0) return null; - T obj = _collection[position]; + T? obj = _collection[position]; _collection.RemoveAt(position); return obj; } diff --git a/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/StorageCollection.cs b/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/StorageCollection.cs index 4452313..0703004 100644 --- a/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/StorageCollection.cs +++ b/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/StorageCollection.cs @@ -18,6 +18,7 @@ public class StorageCollection /// readonly Dictionary> _storages; + /// /// Возвращение списка названий коллекций /// @@ -31,6 +32,7 @@ public class StorageCollection _storages = new Dictionary>(); } + /// /// Добавление коллекции в хранилище ///