Uh oh!
There was an error while loading. Please reload this page.
Refactor DesignerSerializationManager to replace HashTable and enable Nullability - #8353
Conversation
elachlan
commented
Dec 9, 2022
@RussKie, should |
Uh oh!
There was an error while loading. Please reload this page.
lonitra
left a comment
There was a problem hiding this comment.
There seems to be a bug in the original code. Otherwise, mostly about cleaning up some old comments
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
elachlan
commented
Dec 15, 2022
I think that |
lonitra
left a comment
There was a problem hiding this comment.
Small comment on whether a null check can be removed, otherwise LGTM!
Uh oh!
There was an error while loading. Please reload this page.
lonitra
commented
Dec 16, 2022
Looking at source code it may need to be addressed in TypeDescriptorProvider. I believe runtime owns TypeDescriptor. Feel free to raise in issue. |
elachlan
commented
Dec 17, 2022
@lonitra I'm digging through runtime now. |
lonitra
commented
Dec 19, 2022
Thanks for doing that! |
lonitra
left a comment
There was a problem hiding this comment.
This LGTM :) but looks like we have some build errors. If you build on command line (cd to winforms repo on command line and type 'build') these errors should show up
elachlan
commented
Dec 19, 2022
Thanks, some of the build errors are related to the winforms PRs. I'll check over it again. |
f6e5d1c to
23570a8CompareUh oh!
There was an error while loading. Please reload this page.
elachlan
commented
Dec 20, 2022
Do we add exception information to XML comments? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lonitra
commented
Dec 21, 2022
Sorry, I'm not sure I follow. Which XML comments? |
…d to check for IList instead of ArrayList
deeae48 to
3df6086Compareelachlan
commented
Feb 6, 2023
I apologize for the rebase/force push. Test should be fixed now. |
lonitra
left a comment
There was a problem hiding this comment.
Thank you for your persistence on this!
elachlan
commented
Feb 9, 2023
Thanks, I hope that the rest of the code base doesn't take me 2 months per code file. |
I was looking at the source code and I think this PR caused a bug here: When |
elachlan
commented
Feb 24, 2023
I'll try and put in a pr to fix it soon. |
KalleOlaviNiemitalo
commented
Feb 24, 2023
The same may apply to other hashtables such as namesByInstance. |
dreddy-work
commented
Feb 24, 2023
Thank you @KalleOlaviNiemitalo for pointing this out. @elachlan, lets take a look at these on case by case. |
Refactored to replace HashTable
Refactored for null-ability annotations
General code cleanup
Dependent on runtime changes in:
IDesignerSerializationManagernullability runtime#79429CreateInstanceinTypeDescriptor/TypeDescriptionProviderto matchActivator.CreateInstanceruntime#79776IDesignerSerializationProvider.GetSerializerruntime#81203Related: #8342, #8143
Microsoft Reviewers: Open in CodeFlow