MethodMapping Class |
Represents the mapping of a method (generic parameters, this reference, parameters)
to a different method.
System.Object
PostSharp.Sdk.AspectInfrastructure.MethodMapping
PostSharp.Sdk.AspectInfrastructure.CanonicalMethodMapping
PostSharp.Sdk.AspectInfrastructure.MethodMapping
PostSharp.Sdk.AspectInfrastructure.CanonicalMethodMapping
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract class MethodMapping : ILocalStorageProvider
The MethodMapping type exposes the following members.
Name | Description | |
---|---|---|
MethodMapping |
Initializes a new MethodMapping.
|
Name | Description | |
---|---|---|
AvailableContextItems |
Set of context items (MethodMappingContextItem) that are available in the current context.
| |
GenericMap |
Gets the GenericMap mapping the current generic context to the original generic context.
| |
InstanceType |
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.
| |
InstanceValueType |
Gets the value type of the this reference, without the managed pointer.
| |
IsValueType |
Determines whether the this object is a value type.
| |
MethodMappingInformation |
Gets static information about the current MethodMapping.
| |
MethodSignature |
Gets the method signature mapped in the current generic context.
| |
Module |
Gets the current ModuleDeclaration.
| |
Task |
Gets the parent AspectInfrastructureTask.
|
Name | Description | |
---|---|---|
CreateWriter |
Creates a MethodMappingWriter able to emit MSIL instructions relevant for the current MethodMapping.
| |
DefineLocalStorage | ||
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInstanceTypeDefinition |
Gets the TypeDefDeclaration of the this object.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | 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.