Online visitors

People learning around the world

Online

—

Visitors exploring W3Schools

Online visitors by country Circles show approximate country locations. The country list provides the visitor counts.

Circles represent countries, not exact visitor locations.

Country

Online

Loading country activity…

    C# Tutorial

    C Sharp Programming Tutorials


    In this tutorial series, you will learn complete C# and its usage from basic to various advanced programming concepts.

    C# comes under internationally accepted general-purpose, high level, an object-oriented programming language developed by the Microsoft Corporation.

    Audience

    This tutorial series covers the C# programming concepts systematically, which makes learning a lot easier for newcomers.

    Required Knowledge

    In the following chapters, you will see that this language construct is similar to C and C ++. Therefore, If you have already experienced programming languages like C and C++, learning C# will become easier. This tutorial series will also cover the basics of this language, so if you have not yet learned any programming, you can start from the very basics here.

    C# Example

    See this example of the "Hello C#" program below; a detailed description of this is given on the C# Program Structure page.

    using System;
    namespace printHelloCsharp
     {
       class HelloCsharp {
          static void Main(string[] args) 
          {
             /* Print some string in C# */
    
             Console.WriteLine("Hello C#.");
             Console.ReadKey();
          }
       }
    }

    Program Output:

    Hello C#.

    The above example is used here to print the text "Hello C#" on the screen.



    Found This Page Useful? Share It!
    Get the Latest Tutorials and Updates
    Join us on Telegram

    Notifications

    Updates are enabled for this browser.

    Receive new tutorials, articles and learning resources. You can turn updates off anytime.