Initializes a new instance of the AssemblyName class with the specified display name. : AssemblyName « Reflection « C# / C Sharp






Initializes a new instance of the AssemblyName class with the specified display name.

 

using System;
using System.Reflection;

public class AssemblyNameDemo
{
   public static void Main()
   {
      AssemblyName myAssemblyName = new AssemblyName("Example, Version=1.0.0.2001, Culture=en-US, PublicKeyToken=null");
      Console.WriteLine("Name: {0}", myAssemblyName.Name);
      Console.WriteLine("Version: {0}", myAssemblyName.Version);
      Console.WriteLine("CultureInfo: {0}", myAssemblyName.CultureInfo);
      Console.WriteLine("FullName: {0}", myAssemblyName.FullName);
   }
}

   
  








Related examples in the same category

1.AssemblyName Class describes an assembly's unique identity in full.
2.Display information about each module of this assembly
3.Gets or sets the major, minor, build, and revision numbers of the assembly.