From 5fe6acc6a4c1f6c11733c0235f7c1496c4157745 Mon Sep 17 00:00:00 2001 From: Lachlan Ennis <2433737+elachlan@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:41:21 +1000 Subject: [PATCH] Replace ArrayList with List in ToolboxItemSnapLineBehavior --- .../Forms/Design/Behavior/ToolboxItemSnapLineBehavior.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/ToolboxItemSnapLineBehavior.cs b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/ToolboxItemSnapLineBehavior.cs index f2f461be0d4..e44cf833489 100644 --- a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/ToolboxItemSnapLineBehavior.cs +++ b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/ToolboxItemSnapLineBehavior.cs @@ -3,7 +3,6 @@ #nullable disable -using System.Collections; using System.ComponentModel.Design; using System.Drawing; @@ -285,7 +284,7 @@ public void OnBeginDrag() bodyAdorner = selMgr.BodyGlyphAdorner; } - ArrayList glyphsToRemove = new ArrayList(); + List glyphsToRemove = []; foreach (ControlBodyGlyph body in bodyAdorner.Glyphs) { Control ctl = body.RelatedComponent as Control;