Лабараторная работа №4 2
This commit is contained in:
parent
7cf45b479c
commit
8476a79cb5
@ -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