C# Tutorial
C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft.
This tutorial will teach you the basics of C# programming and explain various advanced concepts related to the C# programming language.
Who should read this tutorial?
This tutorial helps beginners understand the basics of C# programming. After completing this tutorial, you will reach an intermediate level of C# programming.
Knowledge you need before reading this tutorial:
C# programming is based on the C and C++ programming languages, so a basic understanding of C and C++ programming will help you learn the C# programming language.
Compiling and executing a C# program
Runoob Tutorial provides an online C# compiler environment. With just a few simple clicks, you can experience real programming on high-end servers. It is a completely free online tool.
Example
using
System
;
namespace
HelloWorldApplication
{
/* class name is HelloWorld */
class
HelloWorld
{
/* main function */
static
void
Main
(
string
[
]
args
)
{
/* my first C# program */
Console
.
WriteLine
(
"Hello World!"
)
;
Console
.
ReadKey
(
)
;
}
}
}
Run Example »
C# useful resources
This tutorial lists C# websites, books, and articles.
C# useful websites
- C# Programming Guide - Details about key C# language features and how to access C# through the .NET framework.
- Visual Studio - Download the latest version of Visual Studio, the integrated development environment for C#.
- Go Mono - Mono is a software platform that allows developers to easily create cross-platform applications.
- C Sharp (programming language) - Wikipedia explains C# (programming language).