1 Commits
Lab-6 ... Lab-3

Author SHA1 Message Date
7220e5c229 added missing logic 2024-04-03 14:04:19 +04:00

View File

@@ -37,9 +37,13 @@ namespace Catamaran.CollectionGenericObjects
} }
public T? Get(int position) public T? Get(int position)
{
if (position >= 0 && position < Count)
{ {
return _collection[position]; return _collection[position];
} }
return null;
}
public int Insert(T obj) public int Insert(T obj)
{ {