Create An Array With C# .NET

In this blog post, we are going to create an Array with C# .NET console application. Without going into too many details about arrays, the most important part is that they are beneficial and handy to use and create when needed. Create Console Let’s start with creating a console application using the Dotnet CLI with…… Continue reading Create An Array With C# .NET

Published
Categorized as C#

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