2.Lesson 1: Getting Started with C#

After complete this Getting Start lesson students have ability to: 
• How to use basic structure of a C# program
• How to use input/output (I/O) in console

Warning: C# is case-sensitive.

Example 1: Sample of C# in console

A Simple Welcome Program: Welcome.cs

using System;
// Program start class
class WelcomeCSS
   // Main begins program execution.
   staticvoid Main()
       // Write to console
        Console.WriteLine("Welcome to the C# Station Tutorial!"); 

There are 4 primary elements in C# such as:

  1. namespace declaration
  2. class,
  3. a Main method
  4. program statement.
Yes No Suggest edit
Suggest Edit