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 BindingCollection to replace ArrayList with List<Binding> #8364

Merged
merged 5 commits into from
Feb 17, 2023

Conversation

Jericho
Copy link
Contributor

@Jericho Jericho commented Dec 11, 2022

Related: #8140

Microsoft Reviewers: Open in CodeFlow

Copy link
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.

Just a comment about enabling nullability since we seem to be doing those checks in the file anyways.

@lonitra lonitra added the 📭 waiting-author-feedback The team requires more information from the author label Dec 12, 2022
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Dec 12, 2022
@dreddy-work dreddy-work added the 📭 waiting-author-feedback The team requires more information from the author label Dec 13, 2022
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Dec 13, 2022
@dreddy-work dreddy-work added the 📭 waiting-author-feedback The team requires more information from the author label Dec 13, 2022
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Dec 13, 2022
@dreddy-work dreddy-work added the 📭 waiting-author-feedback The team requires more information from the author label Dec 13, 2022

/// <summary>
/// Gets the bindings in the collection as an object.
/// </summary>
protected override ArrayList List => _list ??= new ArrayList();
protected override ArrayList List => ArrayList.Adapter(_list);
Copy link
Contributor

Choose a reason for hiding this comment

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

is this breaking? Previously ArrayList and List would return the same instance, now a new instance is created each time

Copy link
Member

Choose a reason for hiding this comment

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

@hughbe, It doesn't creates new list but just wraps around it.

@ghost
Copy link

ghost commented Dec 29, 2022

This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days.

It will be closed if no further activity occurs within 7 days of this comment.

@elachlan
Copy link
Contributor

elachlan commented Jan 5, 2023

bumping this so it doesn't get closed.

@ghost
Copy link

ghost commented Jan 20, 2023

This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days.

It will be closed if no further activity occurs within 7 days of this comment.

@ghost
Copy link

ghost commented Feb 3, 2023

This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days.

It will be closed if no further activity occurs within 7 days of this comment.

@elachlan
Copy link
Contributor

elachlan commented Feb 3, 2023

@Jericho if its okay with you, I can possibly take over this?

@ghost ghost removed the 💤 no-recent-activity label Feb 3, 2023
@Jericho
Copy link
Contributor Author

Jericho commented Feb 3, 2023

@elachlan sure but all feedback was addressed and just waiting for merge.

@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Feb 3, 2023
@elachlan
Copy link
Contributor

elachlan commented Feb 4, 2023

I'll leave it to the team to finish the review.

@elachlan
Copy link
Contributor

@dreddy-work I think this might be waiting on the team. Could someone please review it and see what needs to be done?

@dreddy-work
Copy link
Member

@dreddy-work I think this might be waiting on the team. Could someone please review it and see what needs to be done?

I looked into it again and i feel my comment above about initializing list still make sense in this scenario. If @Jericho / @elachlan push a change with respect to that, I will merge it. Rest all look good to me.

@Jericho
Copy link
Contributor Author

Jericho commented Feb 17, 2023

@dreddy-work your feedback was addressed on Dec 13 2022 in commit 8a7327d

@dreddy-work
Copy link
Member

@dreddy-work your feedback was addressed on Dec 13 2022 in commit 8a7327d

Thanks @Jericho, I saw comment was not resolved but didn't cross check the commit. Thank you.

dreddy-work
dreddy-work previously approved these changes Feb 17, 2023
@dreddy-work
Copy link
Member

@Jericho , can you rebase this to get it merged?

@Jericho
Copy link
Contributor Author

Jericho commented Feb 17, 2023

Done: marked the conversation as resolved and rebased.

@dreddy-work
Copy link
Member

src\System.Windows.Forms\src\System\Windows\Forms\BindingsCollection.cs(67,52): error RS0036: (NETCORE_ENGINEERING_TELEMETRY=Build) Symbol 'CollectionChanged' is missing nullability annotations in the declared API.

@dreddy-work dreddy-work merged commit 5b971a5 into dotnet:main Feb 17, 2023
@ghost ghost added this to the 8.0 Preview2 milestone Feb 17, 2023
@Jericho Jericho deleted the GH-8140_BindingCollection branch February 17, 2023 20:13
@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2023
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