Click or drag to resize

XEnumerableUnitTSource Method

Produces a sequence containing a single element.

Namespace:  Linq.Extras
Assembly:  Linq.Extras (in Linq.Extras.dll) Version: 5.0.0+96a4f4bfed64095342c5df107c1fe1fb95603ee5
Syntax
public static IEnumerable<TSource> Unit<TSource>(
	TSource item
)

Parameters

item
Type: TSource
The element to include in the sequence.

Type Parameters

TSource
The type of the element in the sequence.

Return Value

Type: IEnumerableTSource
A sequence containing the specified element.
Remarks
The output sequence is lazily evaluated.
See Also