Export (0) Print
Expand All

Type.ReflectedType Property

Gets the class object that was used to obtain this member.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public override Type ReflectedType { get; }

Property Value

Type: System.Type
The Type object through which this Type object was obtained.

For Type objects, the value of this property is the same as the value of the DeclaringType property.

This example displays the reflected type of a nested class.


using System;
using System.Reflection;

public abstract class Example
{
   public abstract class MyClassB
   {

   }

   public static void Demo(System.Windows.Controls.TextBlock outputBlock)
   {
      outputBlock.Text += String.Format("Reflected type of MyClassB is {0}",
          typeof(MyClassB).ReflectedType) + "\n";
      //Outputs Example, the enclosing type.
   }
}


Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft