Open sandboxFocus

Method GetBrokerInvocationDelegate

GetBrokerInvocationDelegate(EventBroker<TDelegate, TArgs, TState>)

Gets the delegate that packs the event arguments and calls Invoke(in TArgs) or InvokeByRef(ref TArgs). This delegate is then registered in the event using AddHandler(TDelegate, TState) or unregistered using RemoveHandler(TDelegate, TState).

Declaration
TDelegate GetBrokerInvocationDelegate(EventBroker<TDelegate, TArgs, TState> broker)
Parameters
Type Name Description
EventBroker<TDelegate, TArgs, TState> broker

The EventBroker<TDelegate, TArgs, TState> that should be invoked.

Returns
Type Description
TDelegate

A delegate.