MethodDefinition Class |
Namespace: Mono.Cecil
public sealed class MethodDefinition : MethodReference, IMemberDefinition, ICustomAttributeProvider, IMetadataTokenProvider, ISecurityDeclarationProvider
The MethodDefinition type exposes the following members.
Name | Description | |
---|---|---|
MethodDefinition | Initializes a new instance of the MethodDefinition class |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBaseMethod | ||
GetElementMethod | (Inherited from MethodReference.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetOriginalBaseMethod | ||
GetSemantics | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Resolve | (Overrides MethodReferenceResolve.) | |
SetSemantics | ||
ToString | (Inherited from MemberReference.) |
Name | Description | |
---|---|---|
FindBaseMethod |
Find the base virtual method for this method if it's an override.
(Defined by MethodDefinitionUtil.) | |
FindTypeArgument |
Find the type argument for the specified type parameter.
(Defined by MethodDefinitionUtil.) | |
FindTypeParameterIndex |
Find the index of the specified type parameter.
(Defined by MethodDefinitionUtil.) | |
GetCategory |
Get the category name (field, method, etc).
(Defined by MemberReferenceUtil.) | |
GetCustomAttribute |
Get the custom attribute with the specified name from the ICustomAttributeProvider. If there are multiple attributes with the name, the first one is returned.
(Defined by ICustomAttributeProviderUtil.) | |
GetCustomAttributes |
Get all custom attributes with the specified name from the ICustomAttributeProvider.
(Defined by ICustomAttributeProviderUtil.) | |
GetFullName |
Get the full name of the type or member, including the namespace name.
(Defined by MemberReferenceUtil.) | |
GetParameter |
Find the parameter with the specified name.
(Defined by MethodDefinitionUtil.) | |
GetTypeParameter |
Get the type parameter at the specified index.
(Defined by MethodDefinitionUtil.) | |
HasCustomAttribute |
Determine if the ICustomAttributeProvider has a custom attribute.
(Defined by ICustomAttributeProviderUtil.) | |
HasDynamicType |
Determine if the member has a dynamic type.
(Defined by ICustomAttributeProviderUtil.) | |
IsComImport |
True if the method is a COM Import.
(Defined by MethodDefinitionUtil.) | |
IsExtensionMethod |
Check if the method is an extension method.
(Defined by MethodDefinitionUtil.) | |
IsOverride |
Check if the method is an override.
(Defined by MethodDefinitionUtil.) |