3 ms·
You can opt into most of them by setting LangVersion manually to your preferred C# version. It works since most new C# features are just syntactic sugar which
by brewmarche 2y ago
You can opt into most of them by setting LangVersion manually to your preferred C# version.
It works since most new C# features are just syntactic sugar which is lowered by the compiler.
Some of them require new types in the BCL (e.g. Range/Index, marker types for required/init/records), but for that you can just reference PolySharp which will generate the missing types on the fly.
Features that will not work typically also need runtime support, so default interface methods, static interfaces and the like will not work.