C# Type AssemblyQualifiedName
Description
Type AssemblyQualifiedName
gets the assembly-qualified
name of the Type, which includes the name of the assembly from which the Type
was loaded.
Syntax
Type.AssemblyQualifiedName
has the following syntax.
public abstract string AssemblyQualifiedName { get; }
Example
The following example displays the assembly name associated with the class and the fully qualified name of the type.
using System;/*from w w w . j a v a 2 s . c o m*/
using System.Reflection;
class MyAssemblyClass
{
public static void Main()
{
Type objType = typeof(System.Array);
// Print the qualified assembly name.
Console.WriteLine ("Qualified assembly name:\n {0}.",
objType.AssemblyQualifiedName.ToString());
}
}
The code above generates the following result.