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

Document how to add a custom TypeConverter for AxHost.State serialization #8296

Open
Tracked by #6267
JeremyKuhne opened this issue Nov 28, 2022 · 2 comments
Open
Tracked by #6267
Assignees
Labels
area-COM area-Serialization-BinaryFormatter-FeatureWork Feature work under the general area of BinaryFormatter related serialization 📚 documentation Documentation bug or improvement tracking-external-issue An issue is caused by an external system and won't be fixed in this repo
Milestone

Comments

@JeremyKuhne
Copy link
Member

In order to avoid BinaryFormatter you need a custom TypeConverter for AxHost.State to serialize without it. We have an existing converter AxHost.StateConverter that does this, but it isn't actually registered for AxHost.State. We may decide to register it eventually, but even if we do, to support cross compilation with .NET Framework it's necessary to know how to inject a TypeConverter at runtime versus the normal way of applying an attribute.

TypeConverter docs should be updated with this how-to that we then refer to in our docs. Afaik it isn't described anywhere.

@JeremyKuhne JeremyKuhne added 📚 documentation Documentation bug or improvement area-COM labels Nov 28, 2022
@JeremyKuhne JeremyKuhne added this to the .NET 8.0 milestone Nov 28, 2022
@JeremyKuhne
Copy link
Member Author

This technique will likely also apply to ResxResourceReader/Writer in general as well as other places where BinaryFormatter is currently in play.

@lonitra
Copy link
Member

lonitra commented Jan 26, 2023

Issue created to push docs to learn.microsoft dotnet/docs#33728

@JeremyKuhne JeremyKuhne added the area-Serialization-BinaryFormatter-FeatureWork Feature work under the general area of BinaryFormatter related serialization label May 1, 2023
@JeremyKuhne JeremyKuhne modified the milestones: .NET 8.0, .NET 9.0 Aug 16, 2023
@JeremyKuhne JeremyKuhne modified the milestones: .NET 9.0, Future Jul 24, 2024
@JeremyKuhne JeremyKuhne added the tracking-external-issue An issue is caused by an external system and won't be fixed in this repo label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-COM area-Serialization-BinaryFormatter-FeatureWork Feature work under the general area of BinaryFormatter related serialization 📚 documentation Documentation bug or improvement tracking-external-issue An issue is caused by an external system and won't be fixed in this repo
Projects
None yet
Development

No branches or pull requests

2 participants