-
Notifications
You must be signed in to change notification settings - Fork 982
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
Convert Hashtable
usage to Dictionary<TKey, TValue
#8143
Comments
I thought this might be a good use of Does the team have a suggestion here? |
@Jericho, you might want to jump in on this issue as well. |
I attempted WeakHashtable. It is a complicated one. I am unsure how to proceed. Maybe add a type parameter and implement |
Here's the list of classes that contains at least one private property of type
|
Lines 47 to 65 in 4f4829d
|
I see that |
ComNativeDescriptor
- Replace WeakHashtable
with ConditionalWeakTable<object, Com2Properties>
#10316
@lonitra I believe the remaining usages of
Could the team verify that the remaining items can't be refactored, maybe we can close this issue off? |
Is your feature request related to a problem? Please describe
Hashtable has been used all over the winforms code base.
Describe the solution you'd like and alternatives you've considered
Refactoring to
Dictionary<TKey, TValue
is explicit in its typing and avoids boxing.The changes should not affect Public APIs.
System.Windows.Forms: 31 references
System.Windows.Forms.Design: 126 references
Related: #8140, #2644
The text was updated successfully, but these errors were encountered: