From 051ef5f863bb528b0194bdd6942c37bb0b16a532 Mon Sep 17 00:00:00 2001 From: sqdselo <147947144+sqdselo@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:36:14 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionGenericObjects/MassivGenericObjects.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HoistingCrane/HoistingCrane/CollectionGenericObjects/MassivGenericObjects.cs b/HoistingCrane/HoistingCrane/CollectionGenericObjects/MassivGenericObjects.cs index 81b86a9..3e48100 100644 --- a/HoistingCrane/HoistingCrane/CollectionGenericObjects/MassivGenericObjects.cs +++ b/HoistingCrane/HoistingCrane/CollectionGenericObjects/MassivGenericObjects.cs @@ -31,7 +31,7 @@ namespace HoistingCrane.CollectionGenericObjects return null; } - public bool Insert(T obj) + public T? Insert(T obj) { for(int i = 0; i < Count; i++) { @@ -43,7 +43,7 @@ namespace HoistingCrane.CollectionGenericObjects return false; } - public bool Insert(T obj, int position) + public T? Insert(T obj, int position) { // Проверка позиции if (position < Count && position >= 0) @@ -81,7 +81,7 @@ namespace HoistingCrane.CollectionGenericObjects return false; } - public bool Remove(int position) + public T? Remove(int position) { if(position < 0 || position >= arr.Length || arr[position] == null) {