Retrieves the class object that was used to obtain this instance of MemberInfo.
[Visual Basic] MustOverride Public ReadOnly Property ReflectedType As Type [C#] public Type ReflectedType {abstract get;} [C++] public: __property virtual Type* get_ReflectedType() = 0; [JScript] public abstract function get ReflectedType() : Type;
Read-only.
The Type object through which this MemberInfo object was obtained.
The ReflectedType property retrieves the Type object that was used to obtain this instance of MemberInfo. A MemberInfo object represents a method on a particular class or interface.
In order to obtain a MethodInfo object:
[C#]
class Mymemberinfo { public static int Main() { Console.WriteLine ("\nReflection.MemberInfo"); //Get the Type and MemberInfo Type MyType = Type.GetType("System.Reflection.PropertyInfo"); MemberInfo[] Mymemberinfoarray = MyType.GetMembers(); //Display the ReflectedType Console.Write("\nMymemberinfoarray ReflectedType is {0}", Mymemberinfoarray[0].ReflectedType); return 0; } } Produces the following output Reflection.MemberInfo Mymemberinfoarray ReflectedType is System.Reflection.PropertyInfo [To be supplied]
MemberInfo Class | MemberInfo Members | System.Reflection Namespace