What is C# written in?
The C# compiler is written in C# (well-documented). C# is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| C# | 95% | C# Roslyn compiler written in C# (self-hosting) | Source |
Influenced By
- Delphi — Anders Hejlsberg created both Delphi and C#
- Java — C# influenced by Java's design
- C++ — C# influenced by C++ syntax
Languages C# Influenced
- TypeScript — TypeScript designed by Anders Hejlsberg, who created C#
- Dart — Dart influenced by C#'s class-based design
Frequently Asked Questions
What language is C# written in?
C# is primarily implemented in C#. See the implementation section above for details and source references.
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 among others.
Is C# self-hosting?
Yes, C# is self-hosting — its compiler can compile itself.
Evidence Sources
- https://en.wikipedia.org/wiki/C_Sharp_(programming_language)
- https://github.com/dotnet/roslyn
- https://github.com/dotnet/runtime
- https://en.wikipedia.org/wiki/TypeScript
- https://en.wikipedia.org/wiki/Dart_(programming_language)