WeakEventListener<TInstance, TEventArgs>.EventAction Delegate
Provides the delegate for an event action.
public delegate void WeakEventListener<TInstance, TEventArgs>.EventAction(TInstance instance, object? source, TEventArgs eventArgs)
Parameters
Name |
Type |
Description |
instance |
TInstance |
The instance that owns the listener.
|
source |
object |
The source of the event.
|
eventArgs |
TEventArgs |
The event arguments.
|
Constructors
EventAction(object, nint)
public EventAction(object @object, nint method)
Parameter |
Type |
Description |
object |
object |
|
method |
nint |
|
Methods
BeginInvoke(TInstance, object?, TEventArgs, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(TInstance instance, object? source, TEventArgs eventArgs, AsyncCallback callback, object @object)
Returns
- IAsyncResult
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Invoke(TInstance, object?, TEventArgs)
public virtual void Invoke(TInstance instance, object? source, TEventArgs eventArgs)
Parameter |
Type |
Description |
instance |
TInstance |
|
source |
object |
|
eventArgs |
TEventArgs |
|
Extension Methods