FREE tutorial,solution,RSS Feeds on Operating Systems, Programming, Web Development, Applications, Databases, Networking, Hardware, Security, SEO Free Expertsforge Membership
Join us as Moderator
Submit Article to Expertsforge.com Submit Article My Expertsforge
 
RSS Feeds, Help Help RSS Feeds
bannertop
 

C# Tutorial: The first step towards C#

prabakar
2/27/2005 8:56:25 PM, Views: 1790
Here is a program in C# which describes its four styles of Main Function
Please feel free discuss on the program.
/*
* Copyright© Microsun®
* Programmed by Prabakar Devarajan
* Programmed On 12/3/2004 @ 9:34 AM
* email : prabakar.microsun@gmail.com
*/

/*
* 4 Styles of Main:

1. public static void Main() { }
2. public static void Main(string[] args) { }
3. public static int Main() { return 0; }
4. public static int Main(string[] args) { return 0; }
*/

using System;

namespace EntryPointInCSharp
{
class MainClass
{
//public static int Main(string[] args)
//public static int Main()
//public static void Main()
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Next Steps:
Add this Tutorial to:
Blink Blink del.icio.ous Del.icio.us Digg Digg
Fark Fark Furl Furl Google Google
Reddit Reddit Simpy Simpy Spurl Spurl
Technorati Technorati Windows Live Win Live Yahoo Yahoo
Rate Me!
Not Yet Rated!
Rate:
Send Private MessageSend Message
Signup / Login To View the Solution or Provide Comments
Post Comment/Solution
Comment:*
        (Link Rules) 
  Use : [bold] for <b>; [/bold] for </b>; [italic] for <i>; [/italic] for </i>; [code] & [/code] for code
 
Categories
Options
C# RSS Feed
prabakar
Most Popular Tutorial
Most Popular Solution
No Records!
Top Rated
No Records!
Top Rankers
Overall
1. prabakar (100)
Yearly -2008
No Rankings!
Expertsforge Sponsors
bnrtop