Assembly.GetCallingAssembly() in a Thread : Assembly Properties : Assembly C# Examples


C# Examples » Assembly » Assembly Properties »

 

Assembly.GetCallingAssembly() in a Thread









    
using  System;
using  System.Collections.Generic;
using  System.Text;
using  System.Threading;
using  System.Reflection;
using  System.Reflection.Emit;

public  class  MainClass
{
        public  static  void  Main()
        {
                ThreadPool.QueueUserWorkItem(delegate  {
                        Console.WriteLine(Assembly.GetCallingAssembly().FullName);
                });
                Thread.Sleep(100);
        }
}
    
   
  
   



Output

mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Assembly
» Assembly Properties