AsyncEnumerable.Prepend<TSource> メソッド

定義

シーケンスの先頭に値を追加します。

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)

型パラメーター

TSource

ソースの要素の型。

パラメーター

source
IAsyncEnumerable<TSource>

値のシーケンス。

element
TSource

ソースの先頭に追加する値。

返品

IAsyncEnumerable<TSource>

要素で始まる新しいシーケンス。

例外

sourcenullです。

適用対象