Skip to content

Applies to

netstandard2.0

public static IEventPatternSource<TEventArgs> ToEventPattern<TEventArgs>(this IObservable<EventPattern<TEventArgs>> source)

Summary: Exposes an observable sequence as an object with a .NET event, conforming to the standard .NET event pattern.

Type parameters

NameDescription
TEventArgsThe type of the event data generated by the event.

Parameters

NameTypeDescription
sourceIObservable>Observable source sequence.

Returns: IEventPatternSource -- The event source object.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.