How to Comment Code in C# 9

In this blog post, we will learn how to comment single-line or multiple lines of code in a .NET C# 9 program code and make our code more user friendly. Single-line Commenting The first and most common commenting option in C# is a single line commenting which is done as shown below. int myvar = 10;  // Single line comment  Multi-lines Commenting…… Continue reading How to Comment Code in C# 9

Published
Categorized as C#, C# 9

Change C# Console Text Color

In this blog post, I will show you how to change the text color of a C# console application output to the screen. Default By default the text color of any output is white and sometimes you might need to change the color. The code below will ask for input first, once the input is…… Continue reading Change C# Console Text Color

Published
Categorized as C#, C# 9