Interface IMemberInfoIntrospectionProvider
Interface representing a reflection provider used to introspect System.Reflection.MemberInfo objects.
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IMemberInfoIntrospectionProvider
  Methods
GetCustomAttributes(MemberInfo, Boolean)
Returns an array of all custom attributes applied to the specified member.
Declaration
IReadOnlyList<object> GetCustomAttributes(MemberInfo member, bool inherit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the custom attributes for.  | 
      
| System.Boolean | inherit | true to search the specified member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IReadOnlyList<System.Object> | An array that contains all the custom attributes applied to the specified member, or an array with zero elements if no attributes are defined.  | 
      
GetCustomAttributes(MemberInfo, Type, Boolean)
Returns an array of custom attributes applied to the specified member and identified by the specified attributeType.
Declaration
IReadOnlyList<object> GetCustomAttributes(MemberInfo member, Type attributeType, bool inherit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the custom attributes for.  | 
      
| System.Type | attributeType | The type of attribute to search for. Only attributes that are assignable to this type are returned.  | 
      
| System.Boolean | inherit | true to search the specified member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IReadOnlyList<System.Object> | An array of custom attributes applied to the specified member, or an array with zero elements if no attributes assignable to   | 
      
GetCustomAttributesData(MemberInfo)
Gets the custom attributes data defined on the specified member.
Declaration
IEnumerable<CustomAttributeData> GetCustomAttributesData(MemberInfo member)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the custom attributes data for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.Reflection.CustomAttributeData> | The custom attributes data for the specified member.  | 
      
GetDeclaringType(MemberInfo)
Gets the declaring type of the specified member.
Declaration
Type GetDeclaringType(MemberInfo member)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the declaring type for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | The declaring type of the specified member.  | 
      
GetMetadataToken(MemberInfo)
Gets a value that identifies a metadata element.
Declaration
int GetMetadataToken(MemberInfo member)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the metadata token for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | A value which, in combination with System.Reflection.MemberInfo.Module, uniquely identifies a metadata element.  | 
      
GetModule(MemberInfo)
Gets the module the member is defined in.
Declaration
Module GetModule(MemberInfo member)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the module for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Reflection.Module | The module defining the member.  | 
      
GetName(MemberInfo)
Gets the name of the member.
Declaration
string GetName(MemberInfo member)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to get the name for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The name of the member.  | 
      
GetReflectedType(MemberInfo)
Gets the class object that was used to obtain the specified member.
Declaration
Type GetReflectedType(MemberInfo member)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member for which to get the reflected type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | The System.Type object through which the specified System.Reflection.MemberInfo object was obtained.  | 
      
IsDefined(MemberInfo, Type, Boolean)
Determines whether the custom attribute of the specified attributeType type or its derived types is applied to the specified member.
Declaration
bool IsDefined(MemberInfo member, Type attributeType, bool inherit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.MemberInfo | member | The member to check the custom attribute on.  | 
      
| System.Type | attributeType | The type of attribute to search for.  | 
      
| System.Boolean | inherit | This argument is ignored for objects of this type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if one or more instances of   |