The C# Station Tutorial -1

Lesson 1: Getting Started with C#

Understand the basic structure of a C# program.
Obtain a basic familiarization of what a “Namespace” is.
Obtain a basic understanding of what a Class is.
Learn what a Main method does.
Learn how to obtain command-line input.
Learn about console input/output (I/O).
namespace WelcomeCSS
{
class InteractiveWelcome
{
public static void Main()
{
Console.Write("What is your name?:");
string name = Console.ReadLine();
Console.WriteLine("Hello, {0}!", name);
Console.WriteLine("Welcome to the C# Station Tutorial!");
Console.ReadLine();
}
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *