Constructing an assembly name : AssemblyName : Assembly C# Examples


C# Examples » Assembly » AssemblyName »

 

Constructing an assembly name









    
using  System;
using  System.Collections;
using  System.Collections.Generic;
using  System.Diagnostics;
using  System.Globalization;
using  System.IO;
using  System.Reflection;
using  System.Security;
using  System.Security.Permissions;
using  System.Security.Policy;

public  class  MainClass
{
        public  static  void  Main()
        {
                AssemblyName  mscorlib  =  new  AssemblyName();
                mscorlib.Name  =  "mscorlib";
                mscorlib.Version  =  new  Version(2,  0,  0,  0);
                mscorlib.CultureInfo  =  CultureInfo.InvariantCulture;
                mscorlib.SetPublicKeyToken(new  byte[]  {
                        0xb7,  0x7a,  0x5c,  056,  0x19,  0x34,  0xe0,  0x89  });
                mscorlib.ProcessorArchitecture  =  ProcessorArchitecture.X86;

                Console.WriteLine(mscorlib);
        }

}
    
   
  
   



Output

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


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Assembly
» AssemblyName