With nested types, the containing type appears only in FullName
:
using System;
using System.Reflection;
using System.Collections.Generic;
class MainClass
{
static void Main()
{
Type t = typeof(System.Environment.SpecialFolder);
Console.WriteLine(t.Namespace); // System
Console.WriteLine(t.Name); // SpecialFolder
Console.WriteLine(t.FullName); // System.Environment+SpecialFolder
}
}
The output:
System
SpecialFolder
System.Environment+SpecialFolder
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |