C# Type FullName

Description

Type FullName gets the fully qualified name of the Type, including the namespace of the Type but not the assembly.

Syntax

Type.FullName has the following syntax.


public abstract string FullName { get; }

Example

The following example displays the full name of the specified type.


/*w ww  . ja  v  a 2  s.  c o m*/

using System;
class TestFullName 
{
    public static void Main() 
    {
        Type t = typeof(Array);
        Console.WriteLine("The full name of the Array type is {0}.", t.FullName);
    }
} 

The code above generates the following result.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version