Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

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?

like image 963
Neo Avatar asked Sep 15 '10 06:09

Neo


2 Answers

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

like image 197
Adeel Avatar answered Oct 07 '22 03:10

Adeel


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.

like image 2
vc 74 Avatar answered Oct 07 '22 05:10

vc 74