PostSharpAPI ReferencePost­Sharp.​AspectsIEvent­BindingInvoke­Handler
Open sandboxFocus

IEventBinding.InvokeHandler Method

InvokeHandler(ref Object, Delegate, Arguments)

Invoke the Invoke semantic on the next node in the chain of invocation.

Declaration
object InvokeHandler(ref object instance, Delegate handler, Arguments arguments)
Parameters
Type Name Description
Object instance

Target instance on which the event is defined (null if the event is static).

System.Delegate handler

Handler to be removed from the event.

Arguments arguments

Arguments with which the handler should be invoked.

Returns
Type Description
Object

The value returned by the handler.

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.


note

The Invoke Event Handler semantic is different from normal event firing. Indeed, when you fire an event, all handlers that were added to this event are fired. However, the current method invokes only a single handler: the one passed to the handler parameter.