New CSharp Language features 3.0 and 4.0: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Created page with '== New features == === C# 3.0 === * see http://www.codeproject.com/KB/cs/csharp3.aspx * see http://soumya.wordpress.com/2009/06/12/new-features-in-c-part-ii-c-3-0/ * Automatic P…')
 
(No difference)

Revision as of 12:19, 26 October 2011

New features

C# 3.0

  • Automatic Properties
    • used already in the web server for conference backend. saves writing dumb code
  • Object Initializer
    • used by ext.net which is used by the web server for conference backend.
  • Collection Initializers, Dictionary Initializers
  • Extension Methods
  • LINQ
  • Anonymous Types and Implicit Type Variables
  • Lambda Expressions
  • Partial Methods

C# 4.0

  • Named and Optional Parameters
    • this looks most interesting for us
  • Dynamic Support
  • Variance
  • COM Interop

Mono and new C# features

TODO