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

Implement ISerializable fallback serializer #6917

Merged
merged 3 commits into from
Jan 29, 2021

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Jan 27, 2021

Implements a new serializer specifically for conforming ISerializable implementations. This is intended to replace most of the use case that we currently have for BinaryFormatter, which is blocked in .NET 5

This also adds fallback exception serialization so that exception types which are unknown by the deserializing party (eg, the caller of a method which throws) can be deserialized into a special type, maintaining the stack.

Additionally, this supports deserializing exception types which do not expose a protected deserialization constructor (because they did not correctly implement the ISerializable pattern)

@ReubenBond ReubenBond added this to the 4.0.0 milestone Jan 27, 2021
@benjaminpetit benjaminpetit merged commit 0060c65 into dotnet:master Jan 29, 2021
@ReubenBond ReubenBond deleted the feature/exception-serializer branch January 29, 2021 00:17
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants