9

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,738
  • 21
  • 105
  • 131
Neo
  • 15,491
  • 59
  • 215
  • 405

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,738
  • 21
  • 105
  • 131
Adeel
  • 19,075
  • 4
  • 46
  • 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,738
  • 21
  • 105
  • 131
vc 74
  • 37,131
  • 7
  • 73
  • 89