For years we have all used string.Format, it was one of those constructs that I thought “oh wow”, when I first started using the .Net Framework back in 2004. One of my colleagues at the time remarked “Its sweet, isn’t it?”, I guess we were easily amused back then? In C# 6 we saw the […]
Tag: .net Core
C# Expression Bodied Members
We first saw expression bodied members introduced in C# 6. This introduced the ability to take a single expression method and read-only property and reduce it to a more concise form. Functions For example a single line function can be reduced from this: To the following code below: Read-only Properties A read-only property can be […]
.Net Core – Testing Internal Methods
In the .Net Framework, the approach to unit testing internal methods or types was to add an InternalsVisibleTo attribute into the AssemblyInfo.cs file. For example look at the following line of code below: This all works fine in the .net Framework. However in .Net Core most of the settings in the AssemblyInfo file have moved […]
.Net Core Installations
Use the following PowerShell command to find out what versions of .net core are installed on your machine: dotnet –list-sdks