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

Obsolete and put SerializationFormat.Binary behind an appcontext switch #65139

Merged
merged 3 commits into from
Feb 12, 2022

Conversation

roji
Copy link
Member

@roji roji commented Feb 10, 2022

As discussed, this obsoletes System.Data's SerializationFormat.Binary, and adds checks to throw if DataTable/DataSet's RemotingFormat property is set to it, or if the serialization constructor encounters data with it. Added the appcontext switch Switch.System.Data.AllowUnsafeSerializationFormatBinary to allow this to still be used in .NET 7.0; we'd remove these code paths entirely in .NET 8.0.

Part of #39289

/cc @ajcvickers @jeffhandley @blowdart @bricelam

@ghost
Copy link

ghost commented Feb 10, 2022

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

Issue Details

As discussed, this obsoletes System.Data's SerializationFormat.Binary, and adds checks to throw if DataTable/DataSet's RemotingFormat property is set to it, or if the serialization constructor encounters data with it. Added the appcontext switch Switch.System.Data.AllowUnsafeSerializationFormatBinary to allow this to still be used in .NET 7.0; we'd remove these code paths entirely in .NET 8.0.

Part of #39289

/cc @ajcvickers @jeffhandley @blowdart @bricelam

Author: roji
Assignees: -
Labels:

area-System.Data

Milestone: -

@roji roji merged commit bda8c91 into dotnet:main Feb 12, 2022
@roji roji deleted the SerializationFormatBinary branch February 12, 2022 13:03
@ghost ghost locked as resolved and limited conversation to collaborators Mar 14, 2022
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.

Obsolete SerializationFormat.Binary in DataTable/DataSet and put it behind an appcontext switch
2 participants