Showing posts with label How to use multiple main in csharp. Show all posts
Showing posts with label How to use multiple main in csharp. Show all posts

Monday, July 18, 2011

How to use multiple main in csharp

using System;

class ClassA
{
public static void Main()
{
Console.WriteLine("Class A");
}
}
class ClassB
{
public static void Main()
{
Console.WriteLine("Class B");
}
}



save this file as abc.cs
and compile with csc abc.cs/main:classA if you choose classA as entry point
and compile with csc abc.cs/main:classB if you choose classB as entry point

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...