Summary so far and basic of C#

Matteo Lo Piccolo
3 min readJul 15, 2021

--

At this point we learn many things, how works collision and physic, how instantiate object, how import assests, variable, method, script comunication, UI, etc.
Our project in this is state is far to be complete, BUT we can use it, we can play it and test it. Is a good starting point.

But before try to add and “polish” things, I think is a good make one step back.
Unity uses C#, and a deep learn about it can be really useful.
So from today, I try to read at least one article at day about C#, I use visual studio for application, and we go deep in pure code.
Only some of this concept make Unity more esy to approach and understand.

If we open directly Visual Studio, it opens this menu

Here I have all of my project
If I click on new project

We have now this screen.
We can choose from different starting project.
Watch out here, some project use C++. In the future probably I speak about it, for now we stay focus on C#, because Unity use C#.

I choose the first and go to “Application Console”

Click on next

Here we can choose the name of the project, the directory and the name of the Solution.
Solution is the container of one or more projects.
Next again.

We can choose what framework use, I stay with that default
.NET Core 3.1 (long term support)

And we create new project

This is what we have namespace is CSharp,
a class Program, to default this is the starting class.
We have a static method Main, inside here we run the application or code.
As we can see, is a little bit different from Unity, but the logic about many things is absolutely the same.
But there are some things little bit different, and we need to take look at.

In the next articles we see how works C# for applications, and we touch many topic like Properties, Class Inheritance, Abstraction, Interfaces.

All of these things are incredibly powerful and we need to know them!

--

--

Matteo Lo Piccolo
Matteo Lo Piccolo

Written by Matteo Lo Piccolo

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!

No responses yet