C# 14 Extension Member support in beta?
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#extension-members
I know you generally add new feature support shortly after there's an update to the compiler, but it looks like this is a more significant change that requires updates to the editor.
How quickly can this be added to the beta? I'm excited to play around with this.
Some of the other C# 14 features appear to be supported already (e.g., property field
and span conversions) while others not (null conditional assignment)
I do have the .NET 10 preview 4 installed. I suppose this will be a LINQPad 9 feature.
Comments
-
Preview support for this feature is now available in 8.9.3.
-
Sorry: it turns out the latest Roslyn assemblies are causing issues with LINQPad, and this feature has been withdrawn for now.
-
FWIW, it did seem to work fine from my limited test.
Out of curiosity, what sort of issues was it causing?
-
It broke on older .NET versions. The LINQPad 8 GUI supports .NET 6 to .NET 9. The latest Roslyn package requires .NET 8+.
It shouldn't really be a problem, because LINQPad 9 will enter early preview status soon. The GUI for LINQPad 9 supports .NET 8 to 10 (scripts can run down to .NET 6). LINQPad 9 a major update that unifies the Windows & macOS codebases, and has been more than a year in the making. Stay tuned!
-
It would be great if this came out soon
since I'd like to try out Extensions while C# 14 is still in beta without having to crank up VS.
-
The LINQPad 9 early preview should be here within days
-
LINQPad 9 is now in early preview:
https://www.linqpad.net/linqpad9.aspxLet me know how you get along.
-
Awesome! Looks good! Extensions working well. Thanks Joe