From 8476a79cb5726ae1a84a52b4b0c50c7551e04bf8 Mon Sep 17 00:00:00 2001 From: IlyasValiulov <148232695+IlyasValiulov@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:31:01 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=B0=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=964=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionGenericObjects/ListGenericObjects.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ProjectWarmlyShip/ProjectWarmlyShip/CollectionGenericObjects/ListGenericObjects.cs b/ProjectWarmlyShip/ProjectWarmlyShip/CollectionGenericObjects/ListGenericObjects.cs index 9174a17..18f2c09 100644 --- a/ProjectWarmlyShip/ProjectWarmlyShip/CollectionGenericObjects/ListGenericObjects.cs +++ b/ProjectWarmlyShip/ProjectWarmlyShip/CollectionGenericObjects/ListGenericObjects.cs @@ -1,6 +1,4 @@ -using System; - -namespace ProjectWarmlyShip.CollectionGenericObjects; +namespace ProjectWarmlyShip.CollectionGenericObjects; public class ListGenericObjects : ICollectionGenericObjects where T : class @@ -34,7 +32,7 @@ public class ListGenericObjects : ICollectionGenericObjects // TODO вставка в конец набора if (Count == _maxCount) return -1; _collection.Add(obj); - return Count;//возможна проблема + return Count; } public int Insert(T obj, int position) {