8

Possible Duplicates:
What are the correct version numbers for C#?
List of new features in C# 2.0, 3.0 and 4.0

What is the difference between C# versions like ver 2.0 and ver 3.0?

Please help me explain in detail. What are the exact differences?

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
Neo
  • 14,469
  • 52
  • 188
  • 369

2 Answers2

3

From Jon Skeet's book C# in Depth, the web page is here for detail.

C# 2, introducing generics, nullable types, anonymous methods, iterator blocks and some other more minor features

C# 3, introducing implicit typing, object and collection initializers, anonymous types, automatic properties, lambda expressions, extension methods, query expressions and some other minor features

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
Adeel
  • 18,827
  • 4
  • 42
  • 60
2

Many new features support the introduction of LINQ (they can be used in many different contexts, but they are very useful in the context of LINQ).

I strongly suggest you read Jon Skeet's C# in Depth for a detailed explanation of each new feature.

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
vc 74
  • 35,902
  • 7
  • 66
  • 85