Code in C#
Learn the basics of C# through coding examples.
C#
C#, pronounced like the musical note with the same name, is a language developed by Microsoft and was first released in 2000 as a part of the company’s .NET initiative. The language was designed by Anders Hejlsberg, a Danish software engineer, who first called it Cool (for C-like Object-Oriented Language). Microsoft renamed it before its first official release for copyright reasons.
The language is designed to be a simple, modern, and object-oriented programming language. The language is primarily used within Microsoft’s .NET Framework.
Note that all noncompound statements in C# end with a semicolon.
Here are some quick facts:
- Name: C#
- Designed by: Anders Hejlsberg, Microsoft
- First public release: 2000
- Paradigm: Object-oriented, generic, imperative, structured, functional
- Typing: Static
- Most frequently used file extension(s):
.cs
Hello, World!
in C#
All programs written in C# must exist within a class, and one class in our project must have a method called Main
that will be the starting point for the program execution. It should also be noted that all C# applications should exist within a project. ...