Loading, please wait...

A to Z Full Forms and Acronyms

C# Version History

Dec 16, 2020 #VersionHistory#C#, 3504 Views
The article contains C# version history along with all the features.

C# Version History

C# version 1.0

It is released with the Visual Studio .NET in 2002.

The features included in this version is:

  • Class
  • Structs
  • Interfaces
  • Events
  • Properties
  • Statements
  • Attributes
  • Operators and expressions

C# version 1.2

It is published in the 2003 with Visual Studio .NET. It contains the small enhancements to the language.

C# version 2.0

It is published in the 2005 along with Visual Studio 2005.

  • Generic
  • Static classes
  • Nullable value types
  • Partial types
  • Iterators

C# version 3.0

It came in late 2007 with the Visual studio 2008. The 3.5 version also came after 3.0. It creates a major change in the C# growth. The query expression feature of the C# is known as Language Integrated Query (LINQ).

Features included in this version:

  • Lambda expressions
  • Query expressions
  • Expression type
  • Extension method
  • Partial methods

C# version 4.0

It is released in 2010 with same version of visual studio. The language becomes more elegant with the release of this version.

Features come up in this version:

  • The introduction of dynamic keyword
  • Generic covariant and contravariant
  • Named/optional arguments

C# version 5.0

It was released in 2012. The async and await model was introduced in this version.

Features introduced in the version are:

  • Asynchronous members
  • Caller info attributes.

C# version 6.0

It is released in 2015. It introduced the bashing features after 3.0 and 5.0.

The features are:

  • Compile-as-a-service.
  • String Interpolation
  • Nameof Operator
  • Exception filters
  • Awaits in catch/finally block
  • Auto property Initializers

C# version 7.0

It is released in the 2017. It has some interesting features. But this version does not complier-as-a-service.

  • Local functions
  • Digital Separators
  • Binary literals.
  • Pattern Matching
  • Ref returns and locals

C# version 7.1

It is released in 2017.

The main features are:

  • Async main
  • Default literal expression.
  • Inferred Tuple element names

C# version 7.2

It is published in 2017.

The main features are:

  • private protected access modifier
  • Leading underscores in numeric literals
  • Non-trailing named argument.

C# version 7.3

It is published in 2018.

The main features are:

  • Reassigning ref local variables.
  • Using additional generic constraints.
  • Accessing fixed fields without pinning

C# version 8.0

It released in 2019. The main features are:

  • using declarations
  • static local functions
  • readonly struct members
  • Default interface members
  • Switch expressions
  • Indices and range
  • Disposable ref struct

C# version 9.0

It is released in 2020.

  • Records
  • Init only setters
  • Top-level statement
  • Functions pointers
  • Module Initializers
  • Covariant return types.
  • Native Sized integers

TABLE OF VERSIONS

VERSION .NET Framework Visual Studio
1.0 .NET Framework 1.0/1.2 Visual Studio .NET 2002
2.0 .NET Framework 2.0 Visual Studio 2005
3.0 .NET Framework 3.0\3.5 Visual Studio 2008
4.0 .NET Framework 4.0 Visual Studio 2010
5.0 .NET Framework 4.5 Visual Studio 2012/2013
6.0 .NET Framework 4.6 Visual Studio 2013/2015
7.0 .NET Core Visual Studio 2017
7.1 .NET Core Visual Studio 2017
7.2 .NET Core Visual Studio 2017
7.3 .NET Core Visual Studio 2018
8.0 .NET Core Visual Studio 2019
9.0 .NET Core  


 

A to Z Full Forms and Acronyms