dotnet / dotnet/runtime

Microsoft.XmlSerializer.Generator not supported DateOnly and TimeOnly

Open
#122,712 1 comment 0 reactions 0 assignees View on GitHub
area-Serialization untriaged
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

### Description

Microsoft.XmlSerializer.Generator not supported DateOnly and TimeOnly

### Reproduction Steps

```csharp
using System;

namespace ClassLibrary1;

public class Class1
{
public DateOnly Date { get; set; }
public TimeOnly Time { get; set; }
}
```
```xml


net10.0
enable


ClassLibrary1.Class1;
false
true




```

### Expected behavior

Support types DateOnly and TimeOnly

### Actual behavior

not working

### Regression?

no

### Known Workarounds

_No response_

### Configuration

net 10.0

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.