исправил insert

This commit is contained in:
MorozovDanil 2024-04-14 19:28:39 +04:00
parent c39ce29437
commit 40042fbcef

View File

@ -52,15 +52,7 @@ public class MassiveGenericObjects<T> : ICollectionGenericObjects<T>
public bool Insert(T obj)
{
for (int i = 0; i < Count; i++)
{
if (_collection[i] == null)
{
_collection[i] = obj;
return true;
}
}
return false;
return Insert(obj, 0);
}
public bool Insert(T obj, int position)