Skip to content
BENIBIX Learn

C#

Development🔤 LanguagesPopular Languages

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

It is a top choice for office apps on Windows. It is also how Unity games get made.

Definition

C# is a language that came out in 2000. It runs on .NET, a platform for building apps. It looks a lot like Java and is used for Windows apps, web servers and cloud services. It is also the language of the Unity game engine. Its name is said C sharp, like the note in music.

Example code

csharp
Console.WriteLine("Hello, world!");
Newer C# lets a short program skip the class and main method.

Common mistake

Thinking C# only runs on Windows. Modern .NET runs on Linux and macOS too.

Key takeaways

  1. 1
    Runs on .NET. The .NET platform does the heavy work.
  2. 2
    Close to Java. Java developers pick it up fast.
  3. 3
    Unity's language. Many indie games are written in it.

Learn it properly