Skip to content

)}

ObservableEx.ToListObservable(IObservable) method

Defined in

Type: ObservableEx Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

Attributes: [Experimental]

public static ListObservable<TSource> ToListObservable<TSource>(this IObservable<TSource> source)

Summary: Immediately subscribes to source and retains the elements in the observable sequence.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
sourceIObservableSource sequence.

Returns: ListObservable -- Object that's both an observable sequence and a list which can be used to access the source sequence's elements.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.