Skip to content

C# versions major features

AtanuMandal edited this page Apr 5, 2018 · 4 revisions
Clone this wiki locally

C# version 2.0

  • Generics
  • Partial Types
  • Anonymous methods
  • Nullable types
  • Iterators / Iterator method
  • Covariance and Contravariance

C# version 3.0

  • Auto implemented properties
  • Anonymous Types
  • Query Expression
  • Lambda Expression
  • Expression Tree
  • Extension Method

C# version 4.0

  • Dynamic binding
  • Named and optional argument
  • Generic Covariance and Contravariance

C# version 5.0

  • Asynchronous programming : I/O bound/ CPU bound
  • Caller info attribute

C# version 6.0

  • Static imports
  • Exception Filters
  • Property Initializers
  • Expression bodied members
  • Null propagation operator (?)
  • String Interpolation ($)
  • Nameof operator
  • Dictionary Initializer

C# version 7.0

  • Out variable
  • Tuples and deconstruction
  • Pattern matching
  • Local functions
  • Expanded expression bodied members
  • Ref locals and returns