MemberInfo::MemberType Property
When overridden in a derived class, gets a MemberTypes value indicating the type of the member — method, constructor, event, and so on.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
This property is overridden in derived classes, and the override returns the appropriate member type. Therefore, when you examine a set of MemberInfo objects — for example, the array returned by GetMembers — the MemberType property can be used to determine the member type of any given member.
To get the MemberType property, get the class Type. From the Type, get the MethodInfo array. From the MethodInfo array, get the MemberTypes.
The following example displays the member name and type of a specified class.
Note: |
|---|
To run this example, see Building Examples That Use a Demo Method and a TextBlock Control. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Note: