PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Mapping Class

MethodMapping Class

Represents the mapping of a method (generic parameters, this reference, parameters) to a different method.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract class MethodMapping : ILocalStorageProvider

The MethodMapping type exposes the following members.

Protected methodMethodMapping
Initializes a new MethodMapping.
Public propertyAvailableContextItems
Set of context items (MethodMappingContextItem) that are available in the current context.
Public propertyGenericMap
Gets the GenericMap mapping the current generic context to the original generic context.
Public propertyInstanceType
Gets the type of values of the this reference mapped in the current generic context. If this is a value type (IsValueType is true), the current property is a managed pointer to the value type.
Public propertyInstanceValueType
Gets the value type of the this reference, without the managed pointer.
Public propertyIsValueType
Determines whether the this object is a value type.
Public propertyMethodMappingInformation
Gets static information about the current MethodMapping.
Public propertyMethodSignature
Gets the method signature mapped in the current generic context.
Public propertyModule
Gets the current ModuleDeclaration.
Public propertyTask
Gets the parent AspectInfrastructureTask.
Public methodCreateWriter
Creates a MethodMappingWriter able to emit MSIL instructions relevant for the current MethodMapping.
Public methodDefineLocalStorage
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInstanceTypeDefinition
Gets the TypeDefDeclaration of the this object.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
The objective of MethodMapping is to support method ousting: indeed, a transformation may move the method body to a different method and/or class; the this reference and parameters may be mapped to fields.
See Also