C# TypeInfo AssemblyQualifiedName

Description

TypeInfo AssemblyQualifiedName Gets the assembly-qualified name of the Type, which includes the name of the assembly from which the Type was loaded.

Syntax

TypeInfo.AssemblyQualifiedName has the following syntax.


public abstract string AssemblyQualifiedName { get; }

Example


using System;//from   w  w w . j  a  va  2 s . c o  m
using System.Reflection;

class MyAssemblyClass
{
    public static void Main()
    {
        Type objType = typeof(System.Array);

        Console.WriteLine ("Qualified assembly name:\n   {0}.", 
                           objType.AssemblyQualifiedName.ToString()); 
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Reflection »




EventInfo
FieldInfo
MemberInfo
MethodInfo
ParameterInfo
TypeInfo