Skip to content

Replace ArrayList usage in ToolStripItemDataObject with List#10626

Merged
lonitra merged 3 commits into
dotnet:mainfrom
halgab:ToolStripItemDataObject-ArrayList
Jan 24, 2024
Merged

Replace ArrayList usage in ToolStripItemDataObject with List#10626
lonitra merged 3 commits into
dotnet:mainfrom
halgab:ToolStripItemDataObject-ArrayList

Conversation

@halgab
Copy link
Copy Markdown
Contributor

@halgab halgab commented Jan 9, 2024

Contributes to #8140

Proposed changes

  • Replace ArrayList usage in ToolStripItemDataObject with List
  • Update relevant call sites to move off IList and ICollection interfaces
Microsoft Reviewers: Open in CodeFlow

@elachlan
Copy link
Copy Markdown
Contributor

ToolStripItemBehavior.cs(656,119): error CS0103: (NETCORE_ENGINEERING_TELEMETRY=Build) The name 'components' does not exist in the current context

@halgab
Copy link
Copy Markdown
Contributor Author

halgab commented Jan 10, 2024

As mentioned here, this change might not be a no-brainer though...

@elachlan
Copy link
Copy Markdown
Contributor

ToolStripMenuItemDesigner in the DemoConsole has had problems testing in the past see #9413

@elachlan
Copy link
Copy Markdown
Contributor

@Olina-Zhang Is it possible for your team to test this? (I am not sure if it is, because demo console might not enable testing this)

I am concerned about the changes to ToolStripItemDataObject which is used "when a ToolStripItem is Drag-Dropped during DesignTime".

@halgab
Copy link
Copy Markdown
Contributor Author

halgab commented Jan 12, 2024

Abandoning this pr altogether is also a very acceptable outcome if we're not comfortable with it

@Olina-Zhang
Copy link
Copy Markdown
Member

@elachlan @halgab We haven't started the test yet, should we run the test for this PR?

@halgab
Copy link
Copy Markdown
Contributor Author

halgab commented Jan 12, 2024

If you don't mind doing it, of course, please go ahead. Thanks a lot

@Olina-Zhang
Copy link
Copy Markdown
Member

Tested this PR with some toolStripItems drag and drop scenarios in design time, no new issue found.

GH10626_testing.mp4

@elachlan
Copy link
Copy Markdown
Contributor

Thanks @Olina-Zhang! We can definitely merge this then

Copy link
Copy Markdown
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@lonitra lonitra merged commit aa3a6a1 into dotnet:main Jan 24, 2024
@ghost ghost added this to the 9.0 Preview2 milestone Jan 24, 2024
@halgab halgab deleted the ToolStripItemDataObject-ArrayList branch January 24, 2024 17:11
@MandiMan
Copy link
Copy Markdown
Contributor

MandiMan commented Feb 2, 2024

Tested this PR on .NET 9.0.0-preview.2.24076.2 with dlls built from winforms repo of main branch, no new issue found.

10626.mp4

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants