There are basic elements that all C# executable programs
Warning: C# is case-sensitive.
A Simple Welcome Program: Welcome.cs
/ Namespace Declarationusing System;
// Program start class
class WelcomeCSS
{
// Main begins program execution.
static void Main()
{
// Write to console
Console.WriteLine("Welcome to the C# Station Tutorial!");
}
}
The program 4 primary elements, a namespace declaration, a class, a Main method, and a program statement.
