Mono Class Library: System.Type Overview | MembersSystem.Type.FullName Property |
Gets the fully qualified name of the type represented by the current instance. [Edit]
|
A string containing the fully qualified name of the Type. [Edit]
Note: For example, the fully qualified name of the C# string type is "System.String".If the current instance represents a generic type, the type arguments in the string returned by Type.FullName are qualified by their assembly, version, and so on, even though the string representation of the generic type itself is not qualified by assembly. Thus, t.FullName + ", " + t.Assembly.FullName produces the same result as t.AssemblyQualifiedName, as with types that are not generic.
If the current instance represents an unassigned type parameter of a generic type, this property returns null.
Operation
This property is read-only. [Edit]
The following example demonstrates using the Type.FullName property.
C# Example using System; class TestType { public static void Main() { Type t = typeof(Array); Console.WriteLine("Full name of Array type is {0}",t.FullName); } }The output is
Full name of Array type is System.Array
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0