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>(); } + /// /// Добавление коллекции в хранилище ///