dawidkomorowski / geisha

Game Engine written in C#.
https://dawidkomorowski.github.io/geisha/
MIT License
8 stars 1 forks source link

Use System.Diagnostics.UnreachableException to handle unreachable code paths #521

Open dawidkomorowski opened 5 months ago

dawidkomorowski commented 5 months ago

.NET 7 introduced System.Diagnostics.UnreachableException that is meant to handle unreachable code paths. https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.unreachableexception?view=net-7.0

Existing exceptions used in such scenarios should be replaced with UnreachableException.

Acceptance Criteria

Definition of Done

dawidkomorowski commented 5 months ago

This issue depends on #474