Deeper Reflection : Assembly Load : Assembly C# Examples


C# Examples » Assembly » Assembly Load »

 

Deeper Reflection









    
using  System;
using  System.Reflection;

enum  MyEnum
{
        Val1,
        Val2,
        Val3
}
class  MyClass
{
}
struct  MyStruct
{
}
class  MainClass
{
        public  static  void  Main(String[]  args)
        {
                Assembly  a  =  Assembly.LoadFrom  (args[0]);
                Type[]  types  =  a.GetTypes();
                
                foreach  (Type  t  in  types)
                {
                        Console.WriteLine  ("Name:  {0}",  t.FullName);
                        Console.WriteLine  ("Namespace:  {0}",  t.Namespace);
                        Console.WriteLine  ("Base  Class:  {0}",  t.BaseType.FullName);
                }
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Assembly
» Assembly Load