From cb80d0bdd51eb507d725e2f8069bfd54e5f1e282 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 17 Dec 2023 00:58:39 +0400 Subject: [PATCH] pull2 --- DumpTruck/DumpTruck/TrucksGenericCollection.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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];