diff --git a/DumpTruck/DumpTruck/TrucksGenericCollection.cs b/DumpTruck/DumpTruck/TrucksGenericCollection.cs index cf10fb2..6a9a999 100644 --- a/DumpTruck/DumpTruck/TrucksGenericCollection.cs +++ b/DumpTruck/DumpTruck/TrucksGenericCollection.cs @@ -51,8 +51,7 @@ namespace DumpTruck.Generics /// /// /// - public static int operator +(TrucksGenericCollection collect, T? - obj) + public static int operator +(TrucksGenericCollection collect, T? obj) { if (obj == null) { @@ -124,7 +123,6 @@ namespace DumpTruck.Generics private void DrawObjects(Graphics g) { int width = _pictureWidth / _placeSizeWidth; - for (int i = 0; i < _collection.Count; i++) { DrawningTruck? truck = _collection[i];