C# is my favourite programming language and has been evolving overtime. I have been programming with many other languages but C# is always my favourite because it is simple and easy to use. Visual Studio is the most powerful tool I’ve ever used. To me, programming efficiency and peformance are the key factors.
With each major release, new language or compiler features are added together with framework and IDE updates.
This page summarizes the version history up to C# 7.2 to help you recap the core features you may have missed.
* .NET Version doesn’t necessarily indicate the mini version that the feature could work on. For example, some features are compiler features/syntactic sugar and the code can work on previous version after compilation.
|C# Version||Visual Studio||.NET Framework Version||CLR Version
|1.0||VS2012 +||1.0 +||1
|2.0||VS2005 +||2.0 +||2
|3.0||VS2008 +||3.5 +||2
|4.0||VS2010 +||4.0 +||4
|5.0||VS2011 +||4.5 +||4
|6.0||VS2015 +||4.6 +||4
|7.0||VS2017 +||4.7 +||4
|7.1||VS2017 +||4.7 +||4
|7.2||VS2017 +||4.7 +||4
.NET Framework, you can use |DataDirectory| to configure connection string when connecting to SQL Server database file via attach mode: AttachDbFilename=|DataDirectory|\dbname.mdf In .NET Core, you cannot directly set SQL Server Express connec...View detail
.NET Core is built in with dependency injection. Usually method ConfigureServices in Startup class is used to register services in the container. The signature of the method looks like the following: public void ConfigureServices(IServiceC...View detail
After upgrading to ASP.NET Core 2.1 (.NET Core SDK 2.1.301), you may encounter the following error about encoding: System.ArgumentException HResult=0x80070057 Message='Cyrillic' is not a supported encoding name. For information on defining a custo...View detail
SQLite is a self-contained and embedded SQL database engine. In .NET Core, Entity Framework Core provides APIs to work with SQLite. This page provides sample code to create a SQLite database using package Microsoft.EntityFrameworkCore.Sqlite . Create sample project ...View detail
What is a tuple? Tuple is an ordered sequence, fixed-size, immutable and of heterogeneous objects. Tuple has been existing in other languages such as F#, Python, Perl and etc. for a long time. It was first introduced into C# from C# 4.0 and has been evolving over time. Since C# 7.1, tuple...View detail