Правка ListGenericObjects

This commit is contained in:
artur-kalimullin 2024-04-24 15:12:09 +04:00
parent 843191ada0
commit 4c06089549

View File

@ -20,7 +20,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
{ {
get get
{ {
return Count; return _collection.Count;
} }
set set
{ {
@ -68,7 +68,7 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
public IEnumerable<T?> GetItems() public IEnumerable<T?> GetItems()
{ {
for (int i = 0; i < Count; ++i) for (int i = 0; i < _collection.Count; ++i)
{ {
yield return _collection[i]; yield return _collection[i];
} }