AsyncEnumerable.Prepend<TSource> Método

Definición

Agrega un valor al principio de la secuencia.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Prepend(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, TSource element);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Prepend<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, TSource element);
static member Prepend : System.Collections.Generic.IAsyncEnumerable<'Source> * 'Source -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Prepend(Of TSource) (source As IAsyncEnumerable(Of TSource), element As TSource) As IAsyncEnumerable(Of TSource)

Parámetros de tipo

TSource

Tipo de los elementos de origen.

Parámetros

source
IAsyncEnumerable<TSource>

Secuencia de valores.

element
TSource

Valor que se va a anteponer al origen.

Devoluciones

IAsyncEnumerable<TSource>

Nueva secuencia que comienza con el elemento .

Excepciones

source es null.

Se aplica a