using System; using System.Reflection; public class MainClass { static void Main(string[] args) { Assembly EntryAssembly = Assembly.GetEntryAssembly(); if(EntryAssembly.EntryPoint == null){ Console.WriteLine("The assembly has no entry point."); }else{ Console.WriteLine(EntryAssembly.EntryPoint.ToString()); } } }