Skip to content

Conversation

StephenMolloy
Copy link
Member

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

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

@Copilot 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants