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

适用于