-
Notifications
You must be signed in to change notification settings - Fork 983
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
Conversation
There was a problem hiding this 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.
src/System.Windows.Forms/src/System/Windows/Forms/BindingsCollection.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/BindingsCollection.cs
Outdated
Show resolved
Hide resolved
|
||
/// <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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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. |
bumping this so it doesn't get closed. |
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. |
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. |
@Jericho if its okay with you, I can possibly take over this? |
@elachlan sure but all feedback was addressed and just waiting for merge. |
I'll leave it to the team to finish the review. |
@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. |
@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. |
@Jericho , can you rebase this to get it merged? |
8a7327d
to
3c109ca
Compare
Done: marked the conversation as resolved and rebased. |
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. |
Related: #8140
Microsoft Reviewers: Open in CodeFlow