C# - How to start a task without waiting for it to finish
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 »
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 »
I recently hit the mark for getting access to level 1 of Ezoic (10.000 visits and 50$ made in a month). I started out in »
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 »
For the last couple of years I have had sidebars on my blog with adsense ads. It has mainly been an experiment as I had never »
You may have been using other frameworks for mocking and stubbing your HTTP requests - also known as using an "Imposter". This post demonstrates »
In previous versions of .Net the standard was to have a startup.cs file which implemented two methods: * ConfigureServices: Which is responsible for configuring dependency injection. »
You are likely looking for one of these two examples (using hours): var dateTimeMinusOneHour = DateTime.Now.Subtract(TimeSpan.FromHours(1)); var dateTimeMinusOneHour = DateTime.Now.AddHours(-1) »
I have previously written a post on how to return HTML from an ASP.NET controller endpoint. In this post I will take a more general »
I thought I would give an update on how it is going with the blog. I know this is far over mid-year as we are in »
C# has great built-in support for making HTTP requests using the HttpClient. Using this client you can Put, Post, Get, Delete and much more using your »