Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What is the utmost new features of C# 4.0? Can it be enlist to steps? Thanks.
Posted

My friend Google [^]says he can find About 28,500,000 results in (0.27 seconds).

And trust me, first couple of links looks so promising to me.
 
Share this answer
 
Comments
VJ Reddy 15-May-12 6:43am    
Good point. 5!
Manas Bhardwaj 15-May-12 6:44am    
Thanks!
uspatel 15-May-12 6:59am    
This is the better place..
5+
Manas Bhardwaj 15-May-12 7:03am    
thanks! :)
 
Share this answer
 
Comments
VJ Reddy 15-May-12 6:43am    
Good references. 5!
Manas Bhardwaj 15-May-12 6:45am    
nice. +5
BillW33 16-May-12 9:29am    
Nice links, +5
The main new fetures are
-Dynamic programming
-Named and optional parameters
-Covariance and Contravariance

See these CP Articles
C# 4.0's New Features Explained[^]
C# Language Features, From C# 2.0 to 4.0[^]

and
one another article
http://www.c-sharpcorner.com/uploadfile/john_charles/new-features-of-C-Sharp-4-0/[^]
 
Share this answer
 
Comments
VJ Reddy 15-May-12 6:44am    
Good references. 5!
uspatel 15-May-12 6:57am    
Thanks.........
Manas Bhardwaj 15-May-12 6:45am    
nice. +5
uspatel 15-May-12 6:58am    
Thanks Manas.......
BillW33 16-May-12 9:29am    
Good points and links, +5
C# 2.0:

The major features of C# 2 were generics, nullable types, anonymous methods and other delegate-related enhancements and iterator blocks. Additionally, several smaller features were introduced: partial types, static classes, properties with different access modifiers for getters and setters, namespace aliases, pragma directives and fixed-sized buffers.
Some more features: Click here[^]

C# 3.0:

C# 3 primarily built towards LINQ, although many features are useful elsewhere. Automatic properties, implicit typing of arrays and local variables, object and collection initializers and anonymous types. Lambda expressions and expression trees extended the delegate-related progress made in version 2.0, and extension methods provided the last ingredient for query expressions. Partial methods were only added in C# 3, although partial types themselves were in C# 2. As Marc points out in the comments, generic type inference received a considerable boost in C# 3.
Some more features: Click here[^]

C# 4.0:

C# 4.0 has some features aimed at interoperability, but doesn't have the same single-mindedness of C# 3.0. Again there's a reasonably clear divide between the "small" features (named arguments, optional parameters, better COM interop, generic variance) and the huge feature of dynamic typing.
Some more features: Click here[^]
 
Share this answer
 
Comments
VJ Reddy 15-May-12 6:44am    
Good points. 5!
Prasad_Kulkarni 15-May-12 6:50am    
Thank you VJ!
Manas Bhardwaj 15-May-12 6:45am    
nicely explained. 5+
Prasad_Kulkarni 15-May-12 6:50am    
Thank you Manas!
BillW33 16-May-12 9:28am    
Good explanations, +5
All the above answers are good and give the differences between different versions of C# succinctly.

I want to add that if you want to read from C#1 to C# 4 in a progressive way then C# in Depth by Jon Skeet http://csharpindepth.com/[^] is really a good book
 
Share this answer
 
Comments
Manas Bhardwaj 15-May-12 6:44am    
nice. +5
VJ Reddy 15-May-12 7:19am    
Thank you, Manas.
Prasad_Kulkarni 17-May-12 0:49am    
Good one VJ! +5!
VJ Reddy 17-May-12 1:13am    
Thank you, Prasad :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900