Skip to content

C# Fundamentals

C# (pronounced "see sharp") is a modern Object-Oriented Programming language. It is one of the most popular of the programming languages supported by .NET.

C# is a C-based language. It's syntax is influenced by other languages like C, C++, and Java. If you are comfortable developing in either of the aforementioned languages, you can already read C# code.

Here is an example of the traditional "Hello World" program written in C#:

C#
using System;

namespace ADEV.BIT.ADEV.RRC.Module1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World");
            Console.Write("Press any key to continue...");
            Console.ReadKey();
        }
    }
}

This sample code illustrates the C# syntax used for the most basic program.

Further Reading