C# – First lines of code [P.1]

Starting on .net journey based on Microsofts as Proposed by its AI learning route.
So this post marks the starting of my new .NET era. I’ve finaly decided on giving a chance to myself on a new technology and a new career in tech from WordPress to mostly different side of .NET

Start here.

First lines of code and getting muscle memory activated.

Console.WriteLine("Hello There!");

//or .Write

Console.Write("Congratulations!");
Console.Write(" ");
Console.Write("You wrote your first lines of code.");


The difference between .WriteLine and .Write is that the first changes its line. The simpler .Write just prints all mesages in the same line.

Classes in C#

Like any other language the concept remains the same.

Class is like a blueprint. We use it to create objects. A class being a container that stores methods(Functions).
To use this methods in C# you need to know in which class it belongs to.