This is an experimental API that might be used as a compiler support library for implementing an efficient type switch construct. See dotnet/roslyn#31515 and https://github.com/dotnet/coreclr/issues/23241 for the original motivation.
davidwrighton/TypeSwitch
A library that efficiently implements compiler support for type switch.
C#GPL-3.0