AsyncEnumerable.Prepend<TSource> Metod

Definition

Lägger till ett värde i början av sekvensen.

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)

Typparametrar

TSource

Typ av källelement.

Parametrar

source
IAsyncEnumerable<TSource>

En sekvens med värden.

element
TSource

Värdet som ska förberedas för källan.

Returer

IAsyncEnumerable<TSource>

En ny sekvens som börjar med elementet.

Undantag

source är null.

Gäller för