Examining Location Information : Assembly : Reflection C# Source Code


Custom Search

C# Source Code » Reflection » Assembly »

 

Examining Location Information









    


using System;
using System.Reflection;
   
public class MainClass
{
    static void Main()
    {
        Assembly EntryAssembly;
   
        EntryAssembly = Assembly.GetEntryAssembly();
        Console.WriteLine("Location: {0}", EntryAssembly.Location);
        Console.WriteLine("Code Base: {0}", EntryAssembly.CodeBase);
        Console.WriteLine("Escaped Code Base: {0}", EntryAssembly.EscapedCodeBase);
        Console.WriteLine("Loaded from GAC: {0}", EntryAssembly.GlobalAssemblyCache);
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Reflection
» Assembly