Skip to content

)}

Qbservable.ToArray(IQbservable) method

Defined in

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

Applies to

netstandard2.0

public static IQbservable<TSource[]> ToArray<TSource>(this IQbservable<TSource> source)

Summary: Creates an array from an observable sequence.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#The source observable sequence to get an array of elements for.

Returns: [IQbservable][T:System.Reactive.Linq.IQbservable-1] -- An observable sequence containing a single element with an array containing all the elements of the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.