Latest web development tutorials

C# Tutorial

C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg. This tutorial will teach you basic C# programming and will also take you through various advanced concepts related to C# programming language.


This tutorial has been prepared for the beginners to help them understand basic C# programming.


C# programming is very much based on C and C++ programming languages, so if you have a basic understanding of C or C++ programming, then it will be fun to learn C#.

Execute C# Online

For most of the examples given in this tutorial you will find Try it option, so just make use of this option to execute your C# programs at the spot and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box −

using System;
namespace HelloWorldApplication
   class HelloWorld
      static void Main(string[] args)
         /* my first program in C# */
         Console.WriteLine("Hello World");