added missing logic

This commit is contained in:
strwbrry1 2024-04-03 14:04:19 +04:00
parent f50833a276
commit 7220e5c229

View File

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