Interface IMethodInfoIntrospectionProvider
Interface representing a reflection provider used to introspect System.Reflection.MethodInfo objects.
Inherited Members
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. |