Sunteți pe pagina 1din 1

C# Language History1

Version .NET Framework Visual Studio Important Features

C# 1.0 .NET Framework 1.0/1.1 Visual Studio .NET 2002 First release of C#

C# 2.0 .NET Framework 2.0 Visual Studio 2005  Generics


 Partial types
 Anonymous methods
 Nullable types
 Iterators

C# 3.0 .NET Framework 3.0\3.5 Visual Studio 2008  Implicitly typed local variables (var)
 Object and collection initializers
 Auto-implemented properties
 Anonymous types
 Extension methods
 Query expressions /Expression trees
 Lambda expression
 LINQ

C# 4.0 .NET Framework 4.0 Visual Studio 2010  Dynamic binding


 Named/optional arguments
 Generic covariant and contravariant
 Embedded interop types
 TPL (Task Parallel Library)

C# 5.0 .NET Framework 4.5 Visual Studio 2012/2013  Asynchronous members (async/await)
 Caller info attributes

C# 6.0 .NET Framework 4.6 Visual Studio 2013/2015  String Interpolation


 Expression Bodied Methods
 Auto-property initializer
 nameof Expression
 Primary constructor
 Await in catch block
 Exception Filter

C# 7.0 .NET Framework 4.7 Visual Studio 2017  out variables


 Tuples
 Local functions
 Discards
 Pattern Matching
 Generalized async return types

C# 8.0 .NET Framework 4.7.2 Visual Studio 2019  Readonly members


 Default interface members
 Pattern matching enhancements
 Using declarations
 Static local function

1
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history

S-ar putea să vă placă și