Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EventManipulationUtils.GetHandlerDelegate Method

Returns a new instance of the requested Delegate.

[Visual Basic]
Public Shared Sub GetHandlerDelegate( _
   ByVal delegateType As Type, _
   ByVal targetSubscriber As Object, _
   ByVal targetSubscriberDelegateMethod As MethodInfo _
)
[C#]
public static Delegate GetHandlerDelegate(
   Type delegateType,
   object targetSubscriber,
   MethodInfo targetSubscriberDelegateMethod
);

Parameters

delegateType
The Type of delegate to create.
targetSubscriber
The target subscriber object that contains the delegate implementation.
targetSubscriberDelegateMethod
MethodInfo referencing the delegate method on the subscriber.

Return Value

A delegate handler that can be added to an events list of handlers, or called directly.

Remarks

Often used to wire subscribers to event publishers.

See Also

EventManipulationUtils Class | Spring.Objects.Events.Support Namespace