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
![](https://utfs.io/f/8ea41c4a-c464-4f8c-bcf4-593cd744afb9-4pl4mu.png)
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! ![cathi](https://cdn.discordapp.com/emojis/893610023425564672.png)
![cathi](https://cdn.discordapp.com/emojis/893610023425564672.png)
np ![catsip](https://cdn.discordapp.com/emojis/770049584738205696.png)
![catsip](https://cdn.discordapp.com/emojis/770049584738205696.png)