Gets the type that was used to obtain the current instance.
The Type object through which the current instance was obtained.
This property is read-only.
If the current instance represents a generic type, or a type parameter of a generic type or method, this property returns the current instance.
The following example demonstrates the Type.ReflectedType property. Although the method m is declared in MyClassA, its reflected type is obtained from MyClassB .
C# Example
using System; using System.Reflection; public abstract class ReflectedTypeTest { public abstract class MyClassA { public abstract int m(); } public abstract class MyClassB : MyClassA { } public static void Main(string[] args) { Console.WriteLine("Reflected type of m is {0}", typeof(MyClassB).GetMethod("m").ReflectedType); } }The output is
Reflected type of m is ReflectedTypeTest+MyClassB
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0