PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Transformations Namespace / Arguments­Writer Class / Arguments­Writer Methods / Arguments­Writer.​Get­Arguments­Writer Method / Arguments­Writer.​Get­Arguments­Writer Method (ILocal­Storage­Provider, IMethod­Signature, Int32, Int32)

ArgumentsWriter.GetArgumentsWriter Method (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.

Namespace:  PostSharp.Sdk.AspectWeaver.Transformations
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public static ArgumentsWriter GetArgumentsWriter(
	ILocalStorageProvider localStorageProvider,
	IMethodSignature methodSignature,
	int ignoredFirstParameters,
	int ignoredLastParameters
)

Parameters

localStorageProvider
Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorageProvider
An ILocalStorageProvider to store the Arguments object.
methodSignature
Type: PostSharp.Sdk.CodeModel.IMethodSignature
The method signature for which the Arguments object should be built.
ignoredFirstParameters
Type: System.Int32
Number of parameters that must be ignored at the beginning of the method signature.
ignoredLastParameters
Type: System.Int32
Number of parameters that must be ignored at the end of the method signature.

Return Value

Type: ArgumentsWriter
An ArgumentsWriter able to build an Arguments object for methodSignature.
See Also