C
C#3y 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
Bladesfist3y 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
Thinker3y 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
DayKnightOP3y ago
Oof, that was the issue. I forgot (). But I probably should update to newest c# language version anyway Thanks! cathi
Thinker
Thinker3y ago
np catsip
Want results from more Discord servers?
Add your server