PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Transformations Namespace / Arguments­Writer Class

ArgumentsWriter Class

Emits instructions that handle Arguments objects.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectWeaver.Transformations.ArgumentsWriter

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

The ArgumentsWriter type exposes the following members.

Properties
  NameDescription
Public propertyArgumentsType
Gets the specific type of the Arguments object.
Public propertyCacheStorage
Gets the local variable in which the Arguments object is cached.
Public propertyCanLoadArgumentAddress
Determines whether the current ArgumentsWriter is able to load the address of arguments.
Public propertyHasLoadArgumentsAction
Determines whether the current ArgumentsWriter knows how to load the Arguments object.
Public propertyLocalStorageProvider
Methods
  NameDescription
Public methodClone()
Clones the current ArgumentsWriter.
Public methodClone(Boolean)
Clones the current ArgumentsWriter and specifies whether the clone should be reset.
Public methodEmitCreateArguments
Emits instructions that create a new Arguments object based on a given MethodMappingWriter and stores it in a local variable.
Public methodEmitLoadArgument
Emits instructions that load a given argument on the stack.
Public methodEmitLoadArgumentAddress
Emits instructions that load the address of a given argument on the stack.
Public methodEmitLoadArguments
Emits instructions that load the Arguments object on the stack.
Public methodEmitRestoreOutputArguments
Emits instructions that load the values of all the out and ref arguments from the an Arguments object and store these values into the corresponding method parameters using methodMappingWriter.
Public methodEmitStoreArgument(Int32, MethodMappingWriter, InstructionWriter)
Emits instructions that load the value of an index-th argument using a MethodMappingWriter and store this value into the Arguments object.
Public methodEmitStoreArgument(Int32, InstructionWriter, Action<InstructionWriter>)
Emits instructions that store a value, loaded on the stack by the instructions emitted by a given delegate, into the Arguments object under the given index.
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 methodStatic memberGetArgumentsWriter(IMethodSignature)
Public methodStatic memberGetArgumentsWriter(MethodMapping, IMethodSignature)
Gets an ArgumentsWriter able to build an Arguments object for a given method signature.
Public methodStatic memberGetArgumentsWriter(IMethodSignature, Int32, Int32)
Public methodStatic memberGetArgumentsWriter(MethodMapping, Int32, Int32)
Public methodStatic memberGetArgumentsWriter(ILocalStorageProvider, IMethodSignature, Int32, Int32)
Gets an ArgumentsWriter able to build an Arguments object for a given method signature, and allows to ignore the first and last parameters of this signature.
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 methodReset
Resets any stateful information of the current ArgumentsWriter.
Public methodSetLoadArgumentsAction
Instructs the current ArgumentsWriter how the Arguments object can be loaded.
Public methodSetLoadArgumentsFromVariable
Instructs the current ArgumentsWriter that the Arguments object is stored in a given local variable.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also