This is just the remake version of my compillation of C Sharp, with mix of Object Oriented Programming. In this project, the main class or main file is the
Program.cs
where you can find theMain
function. It has the consoles where the program used, also its classes. I use the method ofnamespace
and theusing
to get all the same data here. This is to easily recognize, whether the program is just basic or fundamentals, or in OOP form.
PC
First you need to download the
.Net
SDK that you may found here. And then, you also need VS Studio Code for you to easily code. Next is to download the extension ofC#
in VS Studio Code.
Android
I highly recommend to you to use Replit to run these program. It is for you to code without any hastle. First is go to Replit and create an account, if you already have an account, create a program or a repository, bu clicking the
Create +
button. Click template, and search forC#
, not Mono C# only C#. Next is name your repo, and click+ Create Repl
.
dotnet new console
To Build
dotnet build
To Run
dotnet run
In this simple program, the main here is the Program.cs, where you can see, most of the program.
Theses is just a simple program, and I'm still newbie in learning C#, that's why I want to share it with you.