Skip to content

C# Version ?

ranu hai

Asked Dec 11, 2007, 6:40 PM EST2 answers
Share
LinkedInX

Hi all ,

I am using Visual Studio 2005 , How do I know its C# Version and

Wat's the difference between C# 1.1,C# 1.0  and C# 2.0 ?

Thanks in advance

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    You can get the Verison information with the following code:
    string versionNumber = Environment.Version.Major.ToString() + "." + Environment.Version.Minor.ToString();

    Differences in difference version of C# comes with differences in .NET framework. With the increased versions there are lot many assemblies have been added such as System.Collections.Generic namespace has been provided from 2.0 onwards.
    0
  • 0
    Thanks I was able to get the version number
    0