Add new `System.Diagnostics.UnreachableException` polyfill
Closes #60
Additional context
The System.Diagnostics.UnreachableException.cs file was not actually auto-generated (see #88).
Also, only the English localization was considered for the exception message.
Is this ever going to be provided?
We are still running our own implementation of UnreachableException, but would prefer to receive it through PolySharp.
I just rebased on develop with a few improvements.
- Addressed feedback from @cremor
- Added the
ExcludeFromCodeCoverageattribute - Made the
UnreachableExceptionclassinternalinstead ofpublic
- Added the
- Added mention of this new class in the README
Is there anything holding this pull request @Sergio0694? It looks like several people are interested in it.
I see there's some recent activity here in #127. Please don't forget about this pull request too if you're goint to release a new version of PolySharp. 😉
UnreachableException is available in .NET 8 and .NET 9, the only .NET versions which are still supported.
But it still makes sense when targeting .NET Standard.
Any chance to get this merged, @Sergio0694?