Summary
Converts a .NET event conforming to the standard .NET event pattern into an observable
sequence, subscribing weakly.
Syntax
public static IObservable<EventPattern<object, TEventArgs>> FromEventPattern<TTarget, TEventArgs>(TTarget target, string eventName)
where TEventArgs : EventArgs
Type Parameters
Name |
Description |
TTarget |
The type of target. |
TEventArgs |
The type of the event args. |
Parameters
Name |
Type |
Description |
target |
TTarget |
Object instance that exposes the event to convert. |
eventName |
string |
Name of the event to convert. |
Return Value
Type |
Description |
IObservable<EventPattern<object, TEventArgs>> |
|