I would like to know how I can find out the C # version I am using.
I would like to know how I can find out the C # version I am using.
You can check the version through code as well:
string version = typeof(string).Assembly.ImageRuntimeVersion;
However, from what I was analyzing, the version reported by
ImageRuntimeVersion
is not the correct version of C #.
The C # version depends on which .NET Framework you are using.
The C # Language Team has created a history of the C # versions and their features in the github
pository of them:
Information taken from:
As far as I know, there is no information at runtime, you can only get the framework .
The Compiler tells its version to call on the command line. But it does not say what language version, because it can compiler with a different version profile. You can at least know what version it compiles to.
Try to do this in the project:
If none of this works, and you have to give it, try using a feature that only has one version, if it works, you know that at least that version is ok. If you know the error, it has a lower version, there goes in the attempt and error up or down :) I know it's gambi, but it's the way if nothing else works out.