Skip to content

Feature/issue 178 surrogate provider#181

Merged
esskar merged 2 commits into
mainfrom
feature/issue-178-surrogate-provider
Jun 16, 2026
Merged

Feature/issue 178 surrogate provider#181
esskar merged 2 commits into
mainfrom
feature/issue-178-surrogate-provider

Conversation

@esskar

@esskar esskar commented Jun 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

esskar and others added 2 commits June 16, 2026 10:20
Expose a SerializationSurrogateProvider property on DataSerializer so callers
can attach a custom ISerializationSurrogateProvider to the underlying data
contract serializer, allowing serialization to be customized and unsupported
types to be handled.

The provider is applied to the XML serializer (DataContractSerializer) only;
DataContractJsonSerializer does not honor surrogate providers
(dotnet/runtime#100553). The property is exposed on net6.0-net10.0 and
netstandard2.1, which provide ISerializationSurrogateProvider.

Adds a reproducing test under Tests/Issues/Issue178.cs.

Closes #178

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump version to 4.2.0 and add CHANGELOG.md, reconstructed from the project's
commit history and published NuGet releases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@esskar esskar linked an issue Jun 16, 2026 that may be closed by this pull request
@esskar esskar merged commit 3be18dd into main Jun 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to pass SerializationSurrogateProvider

1 participant