# C#

> The main language of .NET. It runs Windows apps, web servers and Unity games.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** C Sharp, CSharp

## 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.

## 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

Jack builds a 2D game in Unity with C#, the language Microsoft made for .NET. The jump and the score are both C# code.

## Example code

```csharp
Console.WriteLine("Hello, world!");
```

Newer C# lets a short program skip the class and main method.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Java](https://learn.benibix.com/term/development/java)
- [C++](https://learn.benibix.com/term/development/c-plus-plus)
- [Compiled Language](https://learn.benibix.com/term/development/compiled-language)
- [Kotlin](https://learn.benibix.com/term/development/kotlin)
- [Unity (Game Engine)](https://learn.benibix.com/term/development/unity-game-engine)
- [Common Language Runtime (CLR)](https://learn.benibix.com/term/development/common-language-runtime)

## Taught in

- [Python, Java and C#](https://learn.benibix.com/learn/development-languages/python-java-and-c-sharp): Programming Languages, 7/12

---

Source: https://learn.benibix.com/term/development/c-sharp
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
