Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


AsyncEnumerable.Prepend<TSource> Method

Definition

Adds a value to the beginning of the sequence.

C#
public static System.Collections.Generic.IAsyncEnumerable<TSource> Prepend<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, TSource element);

Type Parameters

TSource

The type of the elements of source.

Parameters

source
IAsyncEnumerable<TSource>

A sequence of values.

element
TSource

The value to prepend to source.

Returns

IAsyncEnumerable<TSource>

A new sequence that begins with element.

Exceptions

source is null.

Applies to

Προϊόν Εκδόσεις
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided), 10
.NET Standard 2.0 (package-provided)