XEnumerableUnitTSource Method |
Produces a sequence containing a single element.
Namespace:
Linq.Extras
Assembly:
Linq.Extras (in Linq.Extras.dll) Version: 5.0.0+96a4f4bfed64095342c5df107c1fe1fb95603ee5
Syntaxpublic static IEnumerable<TSource> Unit<TSource>(
TSource item
)
Public Shared Function Unit(Of TSource) (
item As TSource
) As IEnumerable(Of TSource)
static member Unit :
item : 'TSource -> IEnumerable<'TSource>
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:
IEnumerableTSourceA sequence containing the specified element.
RemarksThe output sequence is lazily evaluated.
See Also