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

Refactor DataGridViewColumnCollection to replace ArrayList #8153

Merged
merged 5 commits into from
Nov 10, 2022

Conversation

elachlan
Copy link
Contributor

@elachlan elachlan commented Nov 9, 2022

Refactored DataGridViewColumnCollection to replace ArrayList with List<T>

Related: #8140

Microsoft Reviewers: Open in CodeFlow

@elachlan elachlan requested a review from a team as a code owner November 9, 2022 22:56
@ghost ghost assigned elachlan Nov 9, 2022
@RussKie
Copy link
Member

RussKie commented Nov 10, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@RussKie RussKie enabled auto-merge (squash) November 10, 2022 01:40
auto-merge was automatically disabled November 10, 2022 01:44

Head branch was pushed to by a user without write access

@elachlan
Copy link
Contributor Author

@RussKie sorry, the test failures were due to a test failure I had to change. I had to push the change which has stopped the automerge, hopefully the change is okay?

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

👍

@RussKie RussKie enabled auto-merge (squash) November 10, 2022 02:37
@elachlan
Copy link
Contributor Author

flaky test?

@RussKie
Copy link
Member

RussKie commented Nov 10, 2022

flaky test?

Yes, #7333.

@@ -20,7 +20,7 @@ public void DataGridViewColumnCollection_Ctor_DataGridView()
Assert.Same(control, collection.DataGridView);
Assert.False(collection.IsReadOnly);
Assert.False(collection.IsSynchronized);
Assert.IsType<ArrayList>(collection.List);
Assert.True(collection.List is ArrayList);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would IsAssignableFrom work here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes it does.

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps change it in another future PR? It should give a more meaningful message in case it fails.

@RussKie RussKie merged commit 25a3497 into dotnet:main Nov 10, 2022
@ghost ghost added this to the 8.0 Preview1 milestone Nov 10, 2022
@elachlan elachlan deleted the DataGridViewColumnCollection-ArrayList branch November 10, 2022 05:36
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2022
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