diff --git a/ProjectAirFighter/ProjectAirFighter/CollectionGenericObjects/ListGenericObjects.cs b/ProjectAirFighter/ProjectAirFighter/CollectionGenericObjects/ListGenericObjects.cs index b3b24e7..3d3ddc1 100644 --- a/ProjectAirFighter/ProjectAirFighter/CollectionGenericObjects/ListGenericObjects.cs +++ b/ProjectAirFighter/ProjectAirFighter/CollectionGenericObjects/ListGenericObjects.cs @@ -20,7 +20,7 @@ public class ListGenericObjects : ICollectionGenericObjects { get { - return Count; + return _collection.Count; } set { @@ -68,7 +68,7 @@ public class ListGenericObjects : ICollectionGenericObjects public IEnumerable GetItems() { - for (int i = 0; i < Count; ++i) + for (int i = 0; i < _collection.Count; ++i) { yield return _collection[i]; }