This blog post will learn how to enable Dotnet CLI (C#) command Autocomplete on Linux bash shell. Dotnet CLI With Bash shell on Linux, it is very common for most tools, including bash shell, commands to use Autocomplete to complete commands by using the tab key. Dotnet CLI also has this feature, and we will…… Continue reading Enable AutoComplete for C# .NET on Linux
Category: C# 9
Convert Lower Case Text To Upper Case C#
This blog post will learn how to convert a text string from lower case to upper case using C# build in methods. Upper Case In the below code, I have a string variable with a text that is all lower case and I will convert it to upper case using the .ToUpper() function. using System;…… Continue reading Convert Lower Case Text To Upper Case C#
How To Declare Variables in C# 9
In this blog post we will learn how to declare vairiables in a C# 9 program. Built-in Types Since C# is a vibrant programing language, it comes with more than 30 variable types. Below are a few examples that will help you understand how to define variables. int var = 10; // int variable string…… Continue reading How To Declare Variables in C# 9
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
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
How To Create a C# 9 Console Application
This post will show you how to create a console application on Linux or Windows machine. Dotnet With .NET 5, creating a C# 9 application has gotten easier and simpler and only requires a single command. The following command will create a C# console application called myfirstapp dotnet new console –name myfirstapp The output of…… Continue reading How To Create a C# 9 Console Application