
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:
1. Create a folder for your new project Open a command prompt an run:
1mkdir benchmark.for 2. Create the project 1cd benchmark.for …