Interface IMethodBaseIntrospectionProvider
Interface representing a reflection provider used to introspect System.Reflection.MethodBase objects.
Inherited Members
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IMethodBaseIntrospectionProvider : IMemberInfoIntrospectionProvider
Methods
ContainsGenericParameters(MethodBase)
Gets a value indicating whether the generic method contains unassigned generic type parameters.
Declaration
bool ContainsGenericParameters(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to check for generic parameters. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
GetAttributes(MethodBase)
Gets the attributes associated with the specified method.
Declaration
MethodAttributes GetAttributes(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The property to get the method for. |
Returns
Type | Description |
---|---|
System.Reflection.MethodAttributes | The attributes associated with the specified method. |
GetBaseDefinition(MethodInfo)
Returns the System.Reflection.MethodInfo object for the method on the direct or indirect base class in which the method represented by this instance was first declared.
Declaration
MethodInfo GetBaseDefinition(MethodInfo method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | method | The method to get the base definition for. |
Returns
Type | Description |
---|---|
System.Reflection.MethodInfo | A System.Reflection.MethodInfo object for the first implementation of this method. |
GetCallingConvention(MethodBase)
Gets the calling convention of the specified method.
Declaration
CallingConventions GetCallingConvention(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to get the calling convention for. |
Returns
Type | Description |
---|---|
System.Reflection.CallingConventions | The calling convention of the specified method. |
GetMethodBody(MethodBase)
Gets the method body of the specified method.
Declaration
MethodBody GetMethodBody(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to get the method body for. |
Returns
Type | Description |
---|---|
System.Reflection.MethodBody | The method body of the specified method. |
GetMethodHandle(MethodBase)
Gets a handle to the internal metadata representation of the specified method.
Declaration
RuntimeMethodHandle GetMethodHandle(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to get a method handle for. |
Returns
Type | Description |
---|---|
System.RuntimeMethodHandle | A System.RuntimeMethodHandle object. |
GetMethodImplementationFlags(MethodBase)
Returns the System.Reflection.MethodImplAttributes flags of the specified method.
Declaration
MethodImplAttributes GetMethodImplementationFlags(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to get the implementation flags for. |
Returns
Type | Description |
---|---|
System.Reflection.MethodImplAttributes | The System.Reflection.MethodImplAttributes flags. |
GetParameters(MethodBase)
Gets the parameters of the specified method or constructor.
Declaration
IReadOnlyList<ParameterInfo> GetParameters(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method or constructor to get the parameters for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Reflection.ParameterInfo> | An array of type System.Reflection.ParameterInfo containing information that matches the signature of the method (or constructor) of the specified System.Reflection.MethodBase instance. |
IsGenericMethod(MethodBase)
Gets a value indicating whether the specified method is generic.
Declaration
bool IsGenericMethod(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsGenericMethodDefinition(MethodBase)
Gets a value indicating whether the specified method is a generic method definition.
Declaration
bool IsGenericMethodDefinition(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified |
IsSecurityCritical(MethodBase)
Gets a value that indicates whether the specified method or constructor is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations.
Declaration
bool IsSecurityCritical(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current method or constructor is security-critical or security-safe-critical at the current trust level; false if it is transparent. |
IsSecuritySafeCritical(MethodBase)
Gets a value that indicates whether the specified method or constructor is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code.
Declaration
bool IsSecuritySafeCritical(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method or constructor is security-safe-critical at the current trust level; false if it is security-critical or transparent. |
IsSecurityTransparent(MethodBase)
Gets a value that indicates whether the specified method or constructor is transparent at the current trust level, and therefore cannot perform critical operations.
Declaration
bool IsSecurityTransparent(MethodBase method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | method | The method to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the method or constructor is security-transparent at the current trust level; otherwise, false. |