Adding SourceLink to your .NET Core Library

Last week I read this tweets from Maxime Rouiller (@MaximRouiller): Then I found out that SourceLink is a language-and source-control agnostic system for providing first-class source debugging experiences for binaries." What that means is that, once you enable SourceLink, the users are able to step into your code...

.NET Core, BenchmarkDotNet: for vs foreach performance

So what is faster: looping through a List<> with for or with foreach? Today I’ll show you how to use BenchmarkDotNet with .Net Core to answer that question. Let’s start: Create a folder for your new project Open a command prompt an run: 1mkdir benchmark.for Create the project 1cd benchmark.for 2dotnet new console Add...