New CSharp Language features 3.0 and 4.0

From OpenPetra Wiki
Jump to navigation Jump to search

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