Tuesday, May 27, 2014

C# Hello World Example

The Basic structure of c sharp programs

A C# program basically consists of the following parts:

Name space

Class

  Instance Methods
  Instance Members

Main Method
 Statements and Expressions

Comments


using System;
name MyTutorials
{
 class HelloWorld
{
 public static void Main()
 {
  Console.WriteLine("Hello World..!");
  Console.ReadLine();
 }
 }
}

Output:

Hello World...!

Newer Post
Previous
This is the last post.

0 comments:

Post a Comment

Popular Posts

 
TOP