🔤C#
Also known as C Sharp, CSharp
The main language of .NET. It runs Windows apps, web servers and Unity games.
Think of it like
Think of it like a tool set sold with its own workbench. The tools and the bench are made to fit each other.
Example
Jack builds a 2D game in Unity with C#, the language Microsoft made for .NET. The jump and the score are both C# code.
Why it matters
Definition
Example code
csharp
Console.WriteLine("Hello, world!");Common mistake
Key takeaways
- 1Runs on .NET. The .NET platform does the heavy work.
- 2Close to Java. Java developers pick it up fast.
- 3Unity's language. Many indie games are written in it.