dotnet / dotnet/dotnet-api-docs
Something wrong for one of the examples for DateTimeFormatInfo.GetAllDateTimePatterns
Open
area-System.Globalization
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
URL: https://docs.microsoft.com/en-us/dotnet/api/system.globalization.datetimeformatinfo.getalldatetimepatterns?view=net-5.0
The second example on the page is supposed to show dates being unable to round trip. But when I was running the sample (both on try.dot.net and locally on a console app), the example is able to parse all of them.
So, the output looks like the following:
"Unable to round-trip 0 of 39 format strings."
Contributor guide
Assessment
This issue has not been assessed yet.