Skip to content

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

Open
@JeremyKuhne

Description

@JeremyKuhne

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.

Metadata

Metadata

Assignees

Labels

📚 documentationOpen issue here - https://github.com/dotnet/dotnet-api-docs/issuesarea-COMarea-Serialization-BinaryFormatter-FeatureWorkFeature work under the general area of BinaryFormatter related serializationtracking-external-issueAn issue is caused by an external system and won't be fixed in this repo

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions