Load the System.Xml assembly using an AssemblyName : Assembly Load : Assembly C# Examples


C# Examples » Assembly » Assembly Load »

 

Load the System.Xml assembly using an AssemblyName









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

class  MainClass
{
        public  static  void  Main()
        {
                AssemblyName  name2  =  new  AssemblyName();
                name2.Name  =  "System.Xml";
                name2.Version  =  new  Version(2,  0,  0,  0);
                name2.CultureInfo  =  new  CultureInfo("");        //  Neutral  culture.
                name2.SetPublicKeyToken(  new  byte[]  {0xb7,  0x7a,  0x5c,  0x56,  0x19,  0x34,  0xe0,  0x89});
                Assembly  a2  =  Assembly.Load(name2);
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Assembly
» Assembly Load