C# - How to create, build and run a "hello world" console app on Linux
This post describes how to create a simple Console application and run it on Linux, for this we will be using WSL (Windows Subsystem for Linux) »
This post describes how to create a simple Console application and run it on Linux, for this we will be using WSL (Windows Subsystem for Linux) »
In C# you have several ways to interact with files and folders, the most common are the File, Directory and FileInfo classes. Using these classes you »
In C# you can use the Random class to get random numbers: Random random = new Random(); var diceRoll = random.Next(1,7); In the above we »
In C# you can easily convert a DateTimeOffset to Unix time in seconds or miliseconds using the built-in methods ToUnixTimeSeconds or ToUnixTimeMilliseconds: var dateTimeOffset = DateTimeOffset.Now; »
Some code bases use the .Migrate() or .MigrateAsync() to upgrade their databases to the newest version. Using .Migrate() with no additional parameters upgrades the database to »
I have made a quite a few posts about SelectToken and SelectTokens by now. This post describes how to get two or more properties from a »
NSubstitute is a great framework for mocking objects for tests. I recently had an unexpected behaviour when stubbing a method call. For this simple example we »
You can check if two lists have the same content and in the same sequence using SequenceEqual:
var list1 = new List
This post demonstrates how to run a piece of code asynchronously in C#. This is easily achieved with the Task library. You can start a new »
Both Lists and Arrays in C# are collections* that can hold simple types, objects and structs. We will start by going through the basics of arrays »