PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Def­Declaration Class / Method­Def­Declaration Methods

MethodDefDeclaration Methods

The MethodDefDeclaration type exposes the following members.

Methods
  NameDescription
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodDispose Obsolete. (Inherited from MetadataDeclaration.)
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(IMethod)
Indicates whether the current object is equal to another object of the same type.
Public methodEquals(IMethodSignature)
Indicates whether the current object is equal to another object of the same type.
Public methodFindOverride
Finds the override method that should be called when the current virtual method is called with an instance of a given type.
Public methodFindParentMethodGroup
Finds the parent PropertyDeclaration or EventDeclaration of the current method.
Public methodGetGenericContext
Gets the GenericMap of the current method.
Public methodGetGenericInstance(GenericMap)
Gets a generic instance of the current method.
Public methodGetGenericInstance(IList<ITypeSignature>, BindingOptions)
Finds or construct a specific generic instance of the current generic method definition.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetParentDefinition()
When the current method overrides a method in a parent type, returns the overridden method.
Public methodGetParentDefinition(Boolean)
When the current method overrides a method in a parent type, returns the overridden method, and specifies whether the method should recurse to the root definition of the method.
Public methodGetSystemMethod(Type[], Type[])
Gets the system runtime method corresponding to the current method.
Public methodGetSystemMethod(Type[], Type[], BindingOptions)
Gets the system runtime method corresponding to the current method.
Public methodGetTag<T>
Gets a tag associated with the current declaration.
(Inherited from MetadataDeclaration.)
Public methodGetTokenType
Gets the TokenType of the derived declaration.
(Overrides MetadataDeclaration.GetTokenType().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMapGenericArguments
Resolves all generic arguments in the current method signature.
Public methodReferencesAnyGenericArgument
Determines whether generic arguments are used in the current signature.
Public methodReleaseBody
Indicates that the body is no more needed in memory, so that it is marked for garbage collection.
Public methodRemove
Remove the current declaration from its parent.
Public methodSetTag<T>
Set a tag to the current declaration.
(Inherited from MetadataDeclaration.)
Public methodToString (Inherited from NamedMetadataDeclaration.)
Public methodTranslate
Public methodTranslateMethodSignature
Translates the current method signature so that it is meaningful in another module than the one to which it primarily belong.
Public methodVisit
Public methodWriteReflectionName(StringBuilder, ReflectionNameOptions)
Writes the name of the current declaration to a StringBuilder.
Public methodWriteReflectionName(StringBuilder, ReflectionNameOptions, NameMapper)
Writes the name of the current declaration to a StringBuilder and specifies a NameMapper.
Extension Methods
  NameDescription
Public Extension MethodCreateMethodBodyRestructurer (Defined by MethodBodyRestructureExtensions.)
Public Extension MethodDefinitionMatchesReference(IMethod, BindingOptions)Overloaded. (Defined by CompareExtensions.)
Public Extension MethodDefinitionMatchesReference(IMethodSignature, BindingOptions)Overloaded. (Defined by CompareExtensions.)
Public Extension MethodFindGenericInterfaceOverride (Defined by MethodExtensions.)
Public Extension MethodFindOverride (Defined by MethodExtensions.)
Public Extension MethodGetCallOpCode (Defined by MethodExtensions.)
Public Extension MethodGetCanonicalGenericInstance
Gets the canonical generic instance of a generic method.
(Defined by GenericHelper.)
Public Extension MethodGetDisplayName
Gets the name of a given declaration as it should be displayed to the user.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodGetGenericInstance (Defined by GenericHelper.)
Public Extension MethodGetReflectionName()Overloaded.
Gets the name of a given declaration and returns a string that is compatible with the result of the ToString method of system reflection objects.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodGetReflectionName(ReflectionNameOptions)Overloaded.
Gets the name of a given declaration and returns a string that is compatible with the result of the ToString method of system reflection objects.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodGetReflectionName(ReflectionNameOptions, NameMapper)Overloaded.
Gets the name of a given declaration, constructed using given options.
(Defined by WriteReflectionNameExtensions.)
Public Extension MethodIsExternallyVisible
Determines whether a member is visible outside its assembly.
(Defined by VisibilityHelper.)
Public Extension MethodIsPublic()Overloaded.
Determines whether a member is visible outside its assembly.
(Defined by VisibilityHelper.)
Public Extension MethodIsPublic()Overloaded.
Determines whether a method is visible outside its assembly.
(Defined by VisibilityHelper.)
Public Extension MethodIsPublicOrInternal
Determines whether a method is visible outside class hierarchy.
(Defined by VisibilityHelper.)
Public Extension MethodIsVisible
Determines whether a member is visible from a given scope.
(Defined by VisibilityHelper.)
See Also