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
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
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.Oof, that was the issue. I forgot (). But I probably should update to newest c# language version anyway
Thanks!
np