Type.AssemblyQualifiedName Property
Gets the assembly-qualified name of the Type, which includes the name of the assembly from which the Type was loaded.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual abstract string AssemblyQualifiedName { get; }
Property Value
The assembly-qualified name of the Type, which includes the name of the assembly from which the Type was loaded, or null if the current instance represents a generic type parameter.
Remarks
The assembly-qualified name of a type consists of the type name, including its namespace, followed by a comma, followed by the display name of the assembly. The display name of an assembly is obtained using the Assembly.FullName property.
All compilers that support the common language runtime emit the simple name of a nested class, and reflection constructs a mangled name when queried, in accordance with the following conventions.
Delimiter | Meaning |
---|---|
Backslash (\) | Escape character. |
Comma (,) | Precedes the Assembly name. |
Plus sign (+) | Precedes a nested class. |
Period (.) | Denotes namespace identifiers. |
For example, the assembly-qualified name for a class might look like this:
TopNamespace.SubNameSpace.ContainingClass+NestedClass, MyAssembly, Version=1.3.0.0
If the namespace contained a plus sign, for example TopNamespace.Sub+Namespace, then the plus sign (+) would be preceded by an escape character (\) to prevent it from being interpreted as a nesting separator. Reflection would emit this string as follows:
TopNamespace.Sub\+Namespace.ContainingClass+NestedClass, MyAssembly, Version=1.3.0.0
A "++" becomes "\+\+", and a "\" becomes "\\".
This qualified name can be persisted and later used to load the Type. To search for and load a Type, use GetType either with the type name only or with the assembly qualified type name. GetType with the assembly-qualified type name will look for the Type in the assembly. GetType with the name only will look for the Type in any assembly.
Version Information
Available in the .NET Micro Framework version 4.1.