C
C#2y ago
DayKnight

Not avialible in CSharp 9.0 use 10.0 or greater

Hey, can I just update it? Or do I have to reinstall C#. It's not so long ago I installed C#, It's weird it din't install the newest version
4 Replies
Bladesfist
Bladesfist2y ago
Have a look at the LangVersion set in your csproj and try just setting it to 10 If you're using VS there is a good chance you already have everything you need
Thinker
Thinker2y ago
Also note there is a chance you're just missing () after a method call based on the error. Unless you actually meant to set a variable to a method and not its return.
DayKnight
DayKnight2y ago
Oof, that was the issue. I forgot (). But I probably should update to newest c# language version anyway Thanks! cathi
Thinker
Thinker2y ago
np catsip