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

MethodMappingWriter Class

Emits instructions that load and store arguments and context items in the context of a MethodMapping.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectInfrastructure.MethodMappingWriter

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public abstract class MethodMappingWriter

The MethodMappingWriter type exposes the following members.

Constructors
  NameDescription
Protected methodMethodMappingWriter
Initializes a new MethodMappingWriter.
Properties
  NameDescription
Public propertyCanLoadArgumentAddress
Determines whether the current MethodMappingWriter has the ability to load the address of method arguments.
Public propertyMethodMapping
Gets the parent MethodMapping.
Protected propertyTask
Gets the parent AspectInfrastructureTask.
Methods
  NameDescription
Public methodClone
Clones the current MethodMappingWriter.
Public methodEmitLoadArgument
Emits instructions that load the value of an argument on the stack.
Public methodEmitLoadArgumentAddress
Emits instructions that load the address of an argument on the stack.
Public methodEmitLoadContextItem
Emits instructions that load the value of a context item on the stack. If the item is not available in the current context, it is loaded using instructions emitted by a delegate.
Public methodEmitLoadInstance
Emits instructions that load the this value on the stack.
Public methodEmitStoreByRefArgument
Emits instructions that set the value of an out or ref argument.
Public methodEmitStoreContextItemIntoLocal(MethodMappingContextItem, InstructionWriter, ILocalStorage)
Emits instructions that store a context item into an existing local variable.
Public methodEmitStoreContextItemIntoLocal(MethodMappingContextItem, InstructionWriter, ILocalStorage, ILocalStorage)
Public methodEmitStoreContextItemIntoLocal(MethodMappingContextItem, InstructionWriter, ILocalStorage, Boolean)
Emits instructions that store the value of a context item into a local variable, creates and returns the local variable if it has not been passed by the caller, and returns a value indicating whether the value stored may be null at run time.
Public methodEmitStoreContextItemIntoLocalConditional(MethodMappingContextItem, ILocalStorage, ITypeSignature, InstructionWriter, Action<InstructionWriter, ILocalStorage>)
Public methodEmitStoreContextItemIntoLocalConditional(MethodMappingContextItem, ILocalStorage, ITypeSignature, InstructionWriter, Action<InstructionWriter, ILocalStorage>, Action<InstructionWriter, ILocalStorage>)
Emits instructions that store the value of a context item to a local variable. If the item is not available in the current context, it is loaded using instructions emitted by a delegate.
Public methodEmitStoreContextItemIntoLocalConditional(MethodMappingContextItem, ILocalStorage, ILocalStorage, ITypeSignature, InstructionWriter, Action<InstructionWriter, ILocalStorage>, Action<InstructionWriter, ILocalStorage>)
Public methodEmitStoreInstance
Emits instructions that set the value of the this object (typically a struct).
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 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.)
See Also