Skip to content

Conversation

@StephenMolloy
Copy link
Member

Add test for issue #114813
Will fail if merged before fix (PR #114969)

Copilot AI review requested due to automatic review settings September 4, 2025 22:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a regression test for issue #114813, which appears to be related to DateTimeOffset serialization when using DataContractSerializer within an IXmlSerializable implementation. The test is designed to validate that DateTimeOffset values round-trip correctly in this specific scenario.

Key changes:

  • Added a new test container class DateTimeOffsetIXmlSerializableContainer that implements IXmlSerializable
  • Added a test method DCS_DateTimeOffsetInIXmlSerializableContainer to verify proper serialization/deserialization behavior

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
SerializationTypes.cs Added DateTimeOffsetIXmlSerializableContainer class that wraps DateTimeOffset serialization using DataContractSerializer within IXmlSerializable implementation
DataContractSerializer.cs Added test method to verify DateTimeOffset round-trip serialization works correctly in the IXmlSerializable scenario

Copy link
Member

@mconnew mconnew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenMolloy StephenMolloy force-pushed the 114813_Add-Test branch 2 times, most recently from 40903d6 to 9065252 Compare September 22, 2025 20:00
@StephenMolloy
Copy link
Member Author

/backport to release/10.0

@github-actions
Copy link
Contributor

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17996489224

@StephenMolloy StephenMolloy added the test-enhancement Improvements of test source code label Sep 25, 2025
@StephenMolloy StephenMolloy added this to the 10.0.0 milestone Sep 25, 2025
@StephenMolloy StephenMolloy merged commit 7c575b0 into dotnet:main Sep 26, 2025
88 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Serialization test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants