From c39ce2943743f94c30c72916f8d72c628b84c050 Mon Sep 17 00:00:00 2001 From: MorozovDanil Date: Sun, 14 Apr 2024 15:19:29 +0400 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=BE=D0=B6=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionGenericObjects/ListGenericObjects.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs b/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs index 83765fe..7ca3490 100644 --- a/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs +++ b/ProjectContainerShip/ProjectContainerShip/CollectionGenericObjects/ListGenericObjects.cs @@ -94,6 +94,8 @@ public class ListGenericObjects : ICollectionGenericObjects // } // _collection.RemoveAt(position); // return true; + + //допка if (!_collection.ContainsKey(position)) { return false; @@ -106,6 +108,9 @@ public class ListGenericObjects : ICollectionGenericObjects /// Находит первую пустую позицию в словаре /// /// Индекс первой пустой позиции или -1, если такой не найдено + + + //допка private int FindFirstNullPosition() { for (int i = 0; i < _maxCount; i++)