Programming language · 2000

C#

Multi-paradigm (object-oriented) programming language.

Official site ›
C# logo
C#Written in
2000First released
MicrosoftDeveloper
staticTyping
Built fromInfluenced C# C#DelphiJavaC++EiffelTypeScriptValaQ#Dart
CompilerInfluence
ReplacedVisual Basic and C++ for Windows and .NET development
Being replaced byStill current; no successor

What is C# written in?

The C# compiler, Roslyn, is written in C#. Compiled C# runs on the .NET runtime (the CLR), which is written mainly in C++. The standard library is largely C#.

What C# is used for

C# is the primary language of the Microsoft .NET ecosystem, used for Windows desktop apps, enterprise back-ends (ASP.NET), and games. The Unity engine makes it one of the most popular languages for game development.

Notable software: countless Unity games, Windows business applications, and Microsoft services built on ASP.NET.

About C#

C# is a multi-paradigm (object-oriented) programming language. It is a statically typed and garbage-collected language that compiles to bytecode that runs on a virtual machine. It supports object-oriented, imperative, and functional programming. Compiling to bytecode for a virtual machine is the same model the JVM and .NET use: the VM, not the CPU, interprets or JIT-compiles the bytecode.

C# first appeared in 2000 and was designed by Microsoft, Anders Hejlsberg, and Mads Torgersen at Microsoft. Today C# is one of the most widely used programming languages in the world.

C# in the language family tree

C# drew on ideas from Java, C++, Delphi, and Eiffel and went on to influence TypeScript, Dart, Vala, and Q#.

Sources: Wikipedia · Wikidata · Official site

Quick Facts

Compiler
Roslyn is written in C#
Runtime
CLR / CoreCLR is written in C++
Created by
Anders Hejlsberg, Microsoft, 2000
Output
Common Intermediate Language (CIL)

C# implementation layers

LayerWritten inWhat it does
Roslyn compilerC#Compiles C# to CIL bytecode
CoreCLR runtimeC++JIT-compiles CIL, manages memory
Base Class LibraryC#Core .NET APIs

Frequently Asked Questions

What language is C# written in?
C#'s compiler, Roslyn, is written in C# and is self-hosting. C# compiles to .NET intermediate language, which runs on the Common Language Runtime (CLR), written mainly in C++.
What languages influenced C#?
C# was influenced by Java, C++, Delphi among others. See the influence section above for the full list.
Which languages did C# influence?
C# influenced TypeScript, Dart, Vala among others.
Is C# self-hosting?
Yes, C# is self-hosting, its compiler can compile itself.
When was C# first released?
C# was first released in 2000. It was designed by Microsoft, Anders Hejlsberg, and Mads Torgersen.

Evidence Sources

Discover More

Embed this graph

Paste this iframe into any HTML page to show the C# relationship graph.

<iframe src="https://www.languagelineage.org/embed?lang=csharp" width="100%" height="500" loading="lazy" style="border:0" title="C# relationship graph"></iframe>

Please attribute the visualization to Language Lineage and link to the C# source record.

Explore C# in Graph →