dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
708 stars 1.55k forks source link

midpointrounding Examples uses an undocumented midpointrounding Field value #9768

Open thekingofspain opened 6 months ago

thekingofspain commented 6 months ago

On the midpointrounding documentation for 4.8.1, the enum has two values, but the Examples uses a third undocumented value of ToZero.

dotnet-issue-labeler[bot] commented 6 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-policy-service[bot] commented 6 months ago

Tagging subscribers to this area: @dotnet/area-system-runtime

KalleOlaviNiemitalo commented 6 months ago

MidpointRounding.ToZero and other directed-rounding modes are defined in .NET Core 3.0 and greater. So the problem is that the .NET Core 3.0 example is also displayed for .NET Framework, for which it is not valid.