4 ms·
You can get most of the new language features to work with .Net Framework by overriding the LanguageVersion in the build. I did this to get nullable type annota
by ok123456 4y ago
You can get most of the new language features to work with .Net Framework by overriding the LanguageVersion in the build. I did this to get nullable type annotations and pattern matching to work when I inherited a .Net Disaster.
There are a few that require compiler interop which don't work, like using new syntax on records for specifying the fields (e.g., "record A(int a, int b)").
- louthy 4y agoNot all, some rely on the runtime, like static interface methods. Records can be enabled like this [1] [1] https://github.com/louthy/language-ext/blob/main/LanguageExt.Core/IsExternalInit.cs https://github.com/louthy/language-ext/blob/main/LanguageExt...
- ok123456 4y agoI found that, but I didn't want to introduce more complexity into the build by requiring those same stubs be defined for just a slight advantage.
- deleted 4y ago[deleted]