Open sandboxFocus

Class ArgumentsAttribute

Binds a parameter of an advice method to an Arguments object that holds all the arguments of the target method.

Inheritance
ArgumentsAttribute
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class ArgumentsAttribute : AdviceParameterAttribute
Remarks

The parameter must be of type Arguments or object, and it cannot be ref, in or out. A new Arguments object is allocated on each call of the advice. To read some arguments without this allocation, use ArgumentAttribute.

This attribute can be used in the method boundary advices and in OnMethodInvokeAdvice, where the object is typically passed to the binding received through BindingAttribute to invoke the target method.

Constructors

Name Description
ArgumentsAttribute()

See Also