Assembly.EntryPoint : Assembly « System.Reflection « C# / C Sharp by API






Assembly.EntryPoint

  

using System;
using System.Reflection;
using System;
using System.Reflection;

public class MainClass
{
  static void Main(string[] args)
  {
    Assembly EntryAssembly;

    EntryAssembly = Assembly.GetEntryAssembly();
    if(EntryAssembly.EntryPoint == null)
      Console.WriteLine("The assembly has no entry point.");
    else
      Console.WriteLine(EntryAssembly.EntryPoint.ToString());
  }
}

   
    
  








Related examples in the same category

1.Assembly.CodeBase
2.Assembly.EscapedCodeBase
3.Assembly.Evidence
4.Assembly.FullName
5.Assembly.GetCallingAssembly()
6.Assembly.GetCustomAttributes
7.Assembly.GetEntryAssembly()
8.Assembly.GetExecutingAssembly()
9.Assembly.GetExportedTypes
10.Assembly.GetName
11.Assembly.GetReferencedAssemblies
12.Assembly.GetTypes()
13.Assembly.GlobalAssemblyCache
14.Assembly.Load(AssemblyName name2)
15.Assembly.Load(String name)
16.Assembly.LoadFrom(String assemblyName)
17.Assembly.Location