What is the difference between C# versions like ver 2.0 and ver 3.0?
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?
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.
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
Just a simple Google search:
http://www.developer.com/net/csharp/article.php/3561756/A-Preview-of-Whats-New-in-C-30.htm
http://www.devx.com/dotnet/Article/36703
http://www.albahari.com/nutshell/whatsnewcs30.aspx
And so on and so forth. The search phrase was "what's new in C# 3.0".
链接地址: http://www.djcxy.com/p/21310.html