C# 6


InterServer Web Hosting and VPS

C# 6

Here we'll at new features introduced in C# 6. Starting with my most favourite first.

String Interpolation

This allows to create strings and use the values of variables in the string without having to concatenate or use string.Format. One can embed expressions in the string.


string path = $"/wwwroot/{exportRoot}index.html";

So here we use $ to indicate we are using string interpolation, and then we can put our expressions into the string using the {} curly braces to wrap any expressions.

Sponsored Links
SolarSystem - AngularJS Demo
SolarSystem - Angular JS Demo

Check out my first Angular JS demo hosted in Azure, it helped win my first Angular contract. Put the sound on.

Privacy Policy | Terms and Conditions | Contact | SiteMap