Home Tags Privacy 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.

← Newer Posts Page 13 of 13

C# - Thread.Sleep(1); takes more than 1 milisecond - around 16ms

I recently had to hunt down a bug. We were experiencing a piece of code running very slowly. The executed code should take way less than »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, Tasks and threads 30 April 2017

C# - How to convert/parse a string to an enum

Here is an example on how to parse a string to an enum using the built in enum.Parse method: public enum Vehicle { Car, Bus, Boat, »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 10 March 2017

C#- splitting a string with another string (string delimeter)

Splitting a string [https://docs.microsoft.com/en-us/dotnet/api/system.string?view=netcore-3.1] with another string should be a simple matter in C#. However »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 19 January 2017

C# - Best ways to format and build strings for readability - Updated 2022

There are several ways to concatenate and format strings in C# and below the most common are listed. I do not take performance into this consideration »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 10 September 2016

C# - What are partial classes? and when to use them? - updated 2022

I got this question during an interview and I had to admit that I had rarely used partial classes. We quickly skipped the subject, but I »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 07 September 2016

C# - the null-conditional Operator and how to avoid nested if statements

You probably ended up here because you wanted to avoid nested if statements or found a question mark (?) symbol in a code base and wondered what »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 28 May 2016

C# - What is the var keyword? Is it better to declare variables using it?

This post comes from a question I answered on stack overflow earlier. The question was about the use of datetimes. I used "var" in »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C# 26 May 2016

What is the difference between Web API vs MVC? - asp.net

I get this question a lot. I find it hard to answer in depth because these two technologies are so alike. The basic reply often become »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, C# 21 May 2016

Jetbrains is creating a C# IDE - Project Rider announced!

You might know Jetbrains for their many editors. Php storm, pycharm, rubymine, Intellij Idea, or Clion. But something that all .Net developers know Jetbrains for, is »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Tools, C# 13 January 2016
← Newer Posts Page 13 of 13
  • Rss
  • Twitter
  • LinkedIn
  • profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2025 Privacy policy