Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small refactor of ToolStripDesignerUtils to remove ArrayList usage #10400

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

elachlan
Copy link
Contributor

@elachlan elachlan commented Nov 30, 2023

Related: #8140

Microsoft Reviewers: Open in CodeFlow

@elachlan elachlan requested a review from a team as a code owner November 30, 2023 09:13
@ghost ghost assigned elachlan Nov 30, 2023
@@ -303,10 +303,8 @@ public static Type[] GetCustomItemTypes(IComponent component, ITypeDiscoveryServ

if (creatableTypes.Count > 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this if clause is necessary. I may be wrong, but I think the collection expression here will be equivalent to Array.Empty in the empty case

@lonitra lonitra merged commit ce1ff80 into dotnet:main Dec 1, 2023
9 checks passed
@ghost ghost added this to the 9.0 Preview1 milestone Dec 1, 2023
@elachlan elachlan deleted the ToolStripDesignerUtils-ArrayList branch December 1, 2023 23:19
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 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.

3 participants