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

MethodDefDeclaration Properties

The MethodDefDeclaration type exposes the following members.

Public propertyAttributes
Gets or sets the method attributes.
Public propertyCallingConvention
Gets or sets the method calling convention.
Public propertyCustomDebuggingInformation (Inherited from Declaration.)
Public propertyHasBody
Determines whether the method currently has a body.
Public propertyImplementationAttributes
Gets or sets the method implementation attributes.
Public propertyIsAbstract
Determines whether the method is abstract.
Public propertyIsGenericDefinition
Determines whether the current instance is a generic definition, i.e. whether it can be used to construct generic instances.
Public propertyIsNew
Determines whether the method takes a new slot.
Public propertyIsOriginal
Determines whether the current declaration existed in the source assembly.
(Inherited from MetadataDeclaration.)
Public propertyIsSealed
Determines whether the method is sealed.
Public propertyIsVirtual
Determines whether the method is virtual.
Public propertyMayHaveBody
Determines whether this method may have a body.
Public propertyMetadataToken
Gets or sets the token of the current declaration.
(Inherited from MetadataDeclaration.)
Public propertyName
Gets or sets the name of the current declaration.
(Inherited from NamedMetadataDeclaration.)
Public propertyOrdinal (Inherited from NamedPositionedMetadataDeclaration.)
Public propertyOriginalDeclaration
When the declaration represents another declaration in the source assembly, this property refers to this declaration. When using GetReflectionObject(Type[], Type[], BindingOptions), the original declaration should actually be retrieved.
(Inherited from MetadataDeclaration.)
Public propertyOriginalName (Inherited from NamedMetadataDeclaration.)
Public propertyParentMember
Gets the parent member of the current declaration.
(Overrides MetadataDeclaration.ParentMember.)
Public propertyParentType
Gets the parent type of the current declaration.
(Overrides MetadataDeclaration.ParentType.)
Public propertyPInvokeMap
Gets the P-Invoke map.
Public propertyReturnParameter
Gets the return parameter.
Public propertyVisibility
Gets the visibility of the current method.
See Also