Hello, World! in C# 2010

You can learn to create classes in the C# language. Consider the following code example, which define a class:

using System;
public class Hello
{
public static void Main(string[] args)
{
System.Console.WriteLine("Hello, World!\n");
}
}

Output: Hello, World!

The preceding class declaration provides a method Main() that will display the message "Hello, World!" on your screen.

0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.