Mega Code Archive

 
Categories / C# / Reflection
 

Gets the assembly-qualified name of the Type

using System; using System.Reflection; class MyAssemblyClass {     public static void Main()     {         Type objType = typeof(System.Array);         // Print the full assembly name.         Console.WriteLine ("Full assembly name: {0}.", objType.Assembly.FullName.ToString());          // Print the qualified assembly name.         Console.WriteLine ("Qualified assembly name: {0}.", objType.AssemblyQualifiedName.ToString());      } }