17

I am confused with both the C# version and .NET framework version. In other words, I want to know the relationship with C# version and .NET framework. E.g: which is C# version in .NET framework 3.0?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
user83450
  • 481
  • 2
  • 6
  • 7

3 Answers3

23

I am not sure what your actual question is, but if it is what are the current versions..

C#: 3.0
.NET Framework: 3.5

You might also want to take a look at this breakdown chart. It provides the Framework, language and CLR relations.

Community
  • 1
  • 1
Quintin Robinson
  • 81,193
  • 14
  • 123
  • 132
4

C# 1.0 - Managed Code

C# 2.0 - Generics, Nullable Types, Anonymous Delegates, Partial Classes / Methods

C# 3.0 - LINQ, Lambda Expressions, Implicit Variable Typing, Streamlined Object Initialization

// Related? somewhat perhaps

Matthew Sposato
  • 1,635
  • 1
  • 11
  • 13
1

.net 2 C# 2

.net 3 C# 2

.net 3.5 C# 3

Jimmie R. Houts
  • 7,728
  • 2
  • 31
  • 38
  • 1
    While this **is** the timeline for the versions' releases, they are not so strictly bound to each other. You can use C#3 with .NET 2, 3, & 3.5. At the same time, you could use C# 2 with .NET 2, 3, and, albeit a very limited subset (unless you want to write ugly code), 3.5 – Dan Herbert Sep 06 '09 at 05:27