PostSharp6.2/API Reference/Post­Sharp.​Aspects Namespace/IMethod­Binding Interface/IMethod­Binding Methods/IMethod­Binding.​Invoke Method

IMethodBinding.Invoke Method

Invokes the next node in the chain of invocation.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
Object Invoke(
	ref Object instance,
	Arguments arguments
)

Parameters

instance
Type: System.Object
Target instance on which the method should be invoked (null if the method is static).
arguments
Type: PostSharp.Aspects.Arguments
Method arguments.

Return Value

Type: Object
Return value of the method.
Remarks

The instance parameter is passed by reference so that instance methods of value types ( struct in C#) are allowed to change the value of the instance.

See Also