# C#

> Microsoft's main programming language, used for business apps, web servers and games.

- Level: Intermediate
- Topics: Software
- URL: https://tidbit.legios.com.ar/c-sharp/
- In Spanish: [C#](https://tidbit.legios.com.ar/es/c-sharp/)

**C#** (pronounced "C sharp") is a programming language created by Microsoft around 2000, designed by Anders Hejlsberg. It runs on **.NET**, Microsoft's platform for building and running programs: your C# code is compiled into an intermediate format, and the .NET runtime turns it into machine instructions while the program runs, a bit like Java and its JVM.

In style it sits close to Java: you declare types, organize code in classes, and the compiler catches many mistakes before the program runs. Over the years it added features that made it pleasant to write, like a built-in way to query lists of data and `async`/`await` for doing slow work without freezing the app, an idea many other languages later copied.

For a long time C# was tied to Windows. That changed around 2016, when Microsoft released an open-source, cross-platform version of .NET, so C# now runs on Linux servers and Macs too. You find it in company back-office systems, web backends built with ASP.NET, Windows desktop apps and, notably, video games: Unity, one of the most popular game engines, uses C# for game logic.

## An analogy

A professional kitchen made by a single big manufacturer. The knives, ovens and recipes (the language, .NET and its tools) are designed to fit together, so a team can cook almost anything in it.

## Keep in mind

- Created by Microsoft around 2000; runs on the .NET platform.
- Statically typed and object-oriented, similar in spirit to Java.
- Open source and cross-platform: Windows, Linux and Mac.
- The language of game logic in the Unity engine.

## Go deeper

- [A tour of C# (Microsoft Learn)](https://learn.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/)
- [C# on Wikipedia](https://en.wikipedia.org/wiki/C_Sharp_(programming_language))

## Related terms

- [Programming language](https://tidbit.legios.com.ar/programming-language/): A precise, written language people use to give instructions to a computer.
- [Microsoft](https://tidbit.legios.com.ar/microsoft/): The company of Windows and Office, now just as much a cloud company with Azure.
- [Java](https://tidbit.legios.com.ar/java/): A long-lived programming language behind many bank systems, big business apps and Android.
- [Compiler](https://tidbit.legios.com.ar/compiler/): A program that translates source code into instructions a computer can run directly.
- [Open source](https://tidbit.legios.com.ar/open-source/): Software whose code anyone can read, use, change and share.
- [Linux](https://tidbit.legios.com.ar/linux/): A free, open source operating system that runs most of the internet's servers.
- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
- [Object-oriented programming](https://tidbit.legios.com.ar/object-oriented-programming/): Organizing code as objects that bundle data with the actions that use it.
