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

Add metadata update handler to System.ComponentModel.TypeConverter #51466

Merged
merged 2 commits into from
Apr 20, 2021

Conversation

stephentoub
Copy link
Member

This is in support of hot reload, to be able to clear TypeConverter's reflection caches in response to types being patched. I'm not familiar with all the inner workings of TypeConverters, but this appears to be what's necessary to clear the reflection caches TypeConverter maintains; please let me know if I've missed something, or if this is problematic in other ways.

cc: @tommcdon, @pranavkm, @mikem8361

@ghost
Copy link

ghost commented Apr 18, 2021

Tagging subscribers to this area: @safern
See info in area-owners.md if you want to be subscribed.

Issue Details

This is in support of hot reload, to be able to clear TypeConverter's reflection caches in response to types being patched. I'm not familiar with all the inner workings of TypeConverters, but this appears to be what's necessary to clear the reflection caches TypeConverter maintains; please let me know if I've missed something, or if this is problematic in other ways.

cc: @tommcdon, @pranavkm, @mikem8361

Author: stephentoub
Assignees: -
Labels:

area-System.ComponentModel

Milestone: 6.0.0

Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

Makes sense from what I understand how hot reload works.

…omponentModel/ReflectTypeDescriptionProvider.cs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants