Лабараторная работа №4 2

This commit is contained in:
IlyasValiulov 2024-03-28 20:31:01 +04:00
parent 7cf45b479c
commit 8476a79cb5

View File

@ -1,6 +1,4 @@
using System;
namespace ProjectWarmlyShip.CollectionGenericObjects;
namespace ProjectWarmlyShip.CollectionGenericObjects;
public class ListGenericObjects<T> : ICollectionGenericObjects<T>
where T : class
@ -34,7 +32,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
// TODO вставка в конец набора
if (Count == _maxCount) return -1;
_collection.Add(obj);
return Count;//возможна проблема
return Count;
}
public int Insert(T obj, int position)
{