Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

C# Tutorial

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.

Let's start learning C#!

C# online tools

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