Category: Knowledge Base

How do I create multiple entry points and specify which one to use?

How do I create multiple entry points and specify which one to use?To create multiple entry points you simply add multiple classes, each with a static Main function: using System;namespace MultipleEntryPoints{   class Class1   {       class Point1      {          [STAThread]          static void Main(string[] args)          {             Console.WriteLine(“This is point 1”);         }      }      class Point2      {         [STAThread]   static void Main(string[] args)         {            Console.WriteLine(“This is point 2”);         }      }      class Point3      {         [STAThread]         static void Main(string[] args)         {            Console.WriteLine(“This is […]

Back To Top