Wednesday, 29 March 2017

C# Versions


C# Versions
C# Version
Release Date
Tool
Feature
1.0
2002
Visual Studio .Net
·         First release of .net
2.0
2005
Visual Studio 2005
·         Partial classes
·         Support for generics
·         Iterators
·         Nullable syntax
·         Anonymous methods
·         Static class
·         Volatile keyword
3.0
2008
Visual Studio 2008
·         Implicitly Typed Local Variables
·         Extension Methods
·         Lambda Expressions
·         Type Inference
·         Object and Collection Initializers
·         Anonymous Types
·         Automatically Implemented Properties
·         Expression Trees
4.0
2010
Visual Studio 2010
·         Support for Covariance and Contravariance
·         Optional parameters and named arguments
·         Support for Dynamic and DLR
·         Enhanced support for COM interop
5.0
2012
Visual Studio 2012
·         Async / Await Feature
·         Support for caller information
6.0
2015
Visual studio 2015
  • using Static.
  • Auto property initializer.
  • Dictionary Initializer.
  • nameof Expression.
  • New way for Exception filters.
  • await in catch and finally block.
  • Null – Conditional Operator.
  • Expression – Bodied Methods
  • Easily format strings – String interpolation
7.0
2016
Visual studio 2015 preview 4
·         Local functions – code available currently in github
·         Tuple Types and literals
·         Record Types
·         Pattern matching
·         Non Nullable reference types
·         Immutable types




No comments:

Post a Comment