Home About

All posts tagged with "C#"

C# (C-sharp) is a general-purpose programming language using strong typing, It was developed around 2000 by Microsoft and used on the .Net platform.

Page 1 of 6 Older Posts →

Asp.net core - How to inject a dependency into a controller using standard dependency injection

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. »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, ASP.NET, .Net core 20 January 2021

.Net - A great book for learning the new .Net 5

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Book review, Books, C#, .Net core, .Net 5 12 November 2020

C# - When to use threads instead of tasks

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 Peter Daugaard Rasmussen on C#, Task, Thread 31 October 2020

C# - How to PUT or POST JSON using the HTTPClient in .Net core

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HttpClient, C#, Web 24 October 2020

What is new in .Net 5? and how is it different from .Net core?

This November (2020) we are getting ourselves a new version of .Net called ".Net 5". We are currently at .Net Framework 4.8 and »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on .Net, C#, .Net core 22 October 2020

C# - How to put or post XML using the HttpClient in .Net Core

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, »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, HttpClient, Web 23 September 2020

C# - When to use value tuples and when to use classes

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 Peter Daugaard Rasmussen on C#, Valuetuple 16 September 2020

C# - How to avoid having Tuple members named item1, item2 itemX etc. in methods, lists and variables

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 Peter Daugaard Rasmussen on Valuetuple, C# 08 September 2020

C# - How to convert a list of tuples into a dictionary using the ToDictionary method

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 Peter Daugaard Rasmussen on C#, List 04 July 2020

C# - How to easily create and start a new thread

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Thread, Task 30 May 2020
Page 1 of 6 Older Posts →
Rss
Twitter
LinkedIn
profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2021 Cookie policy