PIbd-11 Valiulov I.A. LabWork04 Simple #4
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user