Show / Hide Table of Contents

Interface IMethodInfoIntrospectionProvider

Interface representing a reflection provider used to introspect System.Reflection.MethodInfo objects.

Inherited Members
IMemberInfoIntrospectionProvider.GetCustomAttributesData(MemberInfo)
IMemberInfoIntrospectionProvider.GetCustomAttributes(MemberInfo, Boolean)
IMemberInfoIntrospectionProvider.GetCustomAttributes(MemberInfo, Type, Boolean)
IMemberInfoIntrospectionProvider.GetDeclaringType(MemberInfo)
IMemberInfoIntrospectionProvider.GetMetadataToken(MemberInfo)
IMemberInfoIntrospectionProvider.GetModule(MemberInfo)
IMemberInfoIntrospectionProvider.GetName(MemberInfo)
IMemberInfoIntrospectionProvider.GetReflectedType(MemberInfo)
IMemberInfoIntrospectionProvider.IsDefined(MemberInfo, Type, Boolean)
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IMethodInfoIntrospectionProvider : IMemberInfoIntrospectionProvider

Methods

GetGenericArguments(MethodInfo)

Returns an array of System.Type objects that represent the type arguments of a closed generic method or the type parameters of a generic method definition.

Declaration
IReadOnlyList<Type> GetGenericArguments(MethodInfo method)
Parameters
Type Name Description
System.Reflection.MethodInfo method

The method to get the generic arguments for.

Returns
Type Description
System.Collections.Generic.IReadOnlyList<System.Type>

An array of System.Type objects that represent the type arguments of a generic method. Returns an empty array if the specified method is not a generic method.

GetGenericMethodDefinition(MethodInfo)

Gets the generic method definition of the specified generic method.

Declaration
MethodInfo GetGenericMethodDefinition(MethodInfo method)
Parameters
Type Name Description
System.Reflection.MethodInfo method

The method to get the generic method definition for.

Returns
Type Description
System.Reflection.MethodInfo

The generic method definition of the specified method.

GetReturnParameter(MethodInfo)

Gets a System.Reflection.ParameterInfo object that contains information about the return type of the method, such as whether the return type has custom modifiers.

Declaration
ParameterInfo GetReturnParameter(MethodInfo method)
Parameters
Type Name Description
System.Reflection.MethodInfo method

The method to get the return parameter for.

Returns
Type Description
System.Reflection.ParameterInfo

A System.Reflection.ParameterInfo object that contains information about the return type.

GetReturnType(MethodInfo)

Gets the return type of the specified method.

Declaration
Type GetReturnType(MethodInfo method)
Parameters
Type Name Description
System.Reflection.MethodInfo method

The method to get the return type for.

Returns
Type Description
System.Type

A System.Type object that contains information about the return type.

GetReturnTypeCustomAttributes(MethodInfo)

Gets the custom attributes for the return type of the specified method.

Declaration
ICustomAttributeProvider GetReturnTypeCustomAttributes(MethodInfo method)
Parameters
Type Name Description
System.Reflection.MethodInfo method

The method to get the custom attributes for the return type for.

Returns
Type Description
System.Reflection.ICustomAttributeProvider

An System.Reflection.ICustomAttributeProvider object representing the custom attributes for the return type.

Extension Methods

CustomAttributeProviderExtensions.IsDefined(IMemberInfoIntrospectionProvider, MemberInfo, Type)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo, Type)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo, Type, Boolean)
CustomAttributeProviderExtensions.GetCustomAttributes<T>(IMemberInfoIntrospectionProvider, MemberInfo)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo, Boolean)
CustomAttributeProviderExtensions.GetCustomAttributes<T>(IMemberInfoIntrospectionProvider, MemberInfo, Boolean)
CustomAttributeProviderExtensions.GetCustomAttribute(IMemberInfoIntrospectionProvider, MemberInfo, Type)
CustomAttributeProviderExtensions.GetCustomAttribute<T>(IMemberInfoIntrospectionProvider, MemberInfo)
CustomAttributeProviderExtensions.GetCustomAttribute(IMemberInfoIntrospectionProvider, MemberInfo, Type, Boolean)
CustomAttributeProviderExtensions.GetCustomAttribute<T>(IMemberInfoIntrospectionProvider, MemberInfo, Boolean)
In This Article
Back to top Generated by DocFX