Table of Contents

Yield Method

Definition

Namespace
Cuemon.Extensions.Collections.Generic
Assemblies
Cuemon.Extensions.Collections.Generic.dll
Source
src/Cuemon.Extensions.Collections.Generic/EnumerableExtensions.cs

Yield<T>(T)

Returns an IEnumerable<T> sequence with the specified value as the only element.

public static IEnumerable<T> Yield<T>(this T value)

Parameters

value T

The T to extend.

Returns

IEnumerable<T>

An IEnumerable<T> sequence with the specified value as the only element.

Type Parameters

T

The type of the element of IEnumerable<T>.