I want to find out which version of C# I'm using.
If I would be using python I would do something like python -V
from the command line, or type:
import sys
print sys.version
In PHP I would do something like this: phpinfo();
in java: java -version
But I was not able to find how to achieve this in C#.
This question does not answer it, although the name suggests that it should.
I got that it depends on the .NET framework, but is there a programmatic way of figuring out my framework? I mean without going to the directory and checking the name of my .NET folders.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…