Asp.net core has built in dependency injection. If you have a standard Asp.net core project you will find the method ConfigureServices in your startup. »
So far there are not many books for .Net 5, as it was so recently announced. What I have found from ratings is that the following »
I have not yet found a situation where I needed a thread instead of a Task. Threads are a lower level concept when compared to tasks. »
Peter Daugaard Rasmussen
on C# , Task , Thread
31 October 2020
In this post I demonstrate how you can POST or PUT JSON using the HTTPClient in C#. The simplest way to do this is using the »
This November (2020) we are getting ourselves a new version of .Net called ".Net 5". We are currently at .Net Framework 4.8 and »
It is quite easy to send XML using the HttpClient in asp.net core. In order to do this you need to use the StringContent object, »
Value tuples were introduced with C# 7. The original tuples have been around since 2010 when they were released with .Net Framework 4.0. Even though »
Peter Daugaard Rasmussen
on C# , Valuetuple
16 September 2020
Earlier this year I made a post on how to make a list of named value tuples. I decided to make a new post with some »
Peter Daugaard Rasmussen
on Valuetuple , C#
08 September 2020
There is a built-in method in C# where you can create a dictionary from a list - it is called ToDictionary. All you need to provide »
Peter Daugaard Rasmussen
on C# , List
04 July 2020
It is quite easy to start a new thread in C#. All you need is to instantiate a new object of the type Thread and call »