//Two Main Methods in one Program
using System;
class A
{
static void Main()
{
Console.WriteLine("This Is Class A");
}
}
class B
{
static void Main()
{
Console.WriteLine("This Is Class B");
}
}
//NOTE: To Compile this program you need to write csc TwoMainMethods.cs /main:A or B(one class name)
No comments:
Post a Comment