AsyncEnumerable.Append<TSource> 方法

定义

将值追加到序列的末尾。

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

类型参数

TSource

源元素的类型。

参数

source
IAsyncEnumerable<TSource>

一系列值。

element
TSource

要追加到源的值。

返回

IAsyncEnumerable<TSource>

以元素结尾的新序列。

例外

sourcenull

适用于