PIbd-11 Valiulov I.A. LabWork04 Simple #4

Closed
Ilyas wants to merge 2 commits from LabWork04 into LabWork03
Showing only changes of commit 8476a79cb5 - Show all commits

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)
{