Sie sind auf Seite 1von 4

In this session

Basic structure of a C# program


What is Namespace
Purpose of main method

Sample Program
//Namespace declaration
using System;
class Sample
{
public static void Main()
{
//Write to console.
Console.WriteLine(Welcome to C-in Softwares);
}
}

Using System declaration


The namespace declaration, using System, indicates

that you are using System namespace.


A namespace is used to organize your code and is

collection of classes, interfaces, structs, enums and


delegates.

Main method is the entry point into your

program

Das könnte Ihnen auch gefallen