From fa6661bfceb71cc6efeb22f81f7cccc46c0efa6c Mon Sep 17 00:00:00 2001 From: mar-va Date: Tue, 21 May 2024 11:49:40 +0400 Subject: [PATCH] Lab7 --- .../CollectionGenericObjects/MassiveGenericObjects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectAccordionBus/ProjectAccordionBus/CollectionGenericObjects/MassiveGenericObjects.cs b/ProjectAccordionBus/ProjectAccordionBus/CollectionGenericObjects/MassiveGenericObjects.cs index 1a359d4..3b4397a 100644 --- a/ProjectAccordionBus/ProjectAccordionBus/CollectionGenericObjects/MassiveGenericObjects.cs +++ b/ProjectAccordionBus/ProjectAccordionBus/CollectionGenericObjects/MassiveGenericObjects.cs @@ -56,7 +56,7 @@ public class MassiveGenericObjects : ICollectionGenericObjects public T? Get(int position) { - if (position < 0 || position >= Count) throw new PositionOutOfCollectionException(); + if (position < 0 || position >= Count) throw new PositionOutOfCollectionException(position); return _collection[position]; }