 | LinqHelperEmptyT Method |
Returns an empty
IEnumerableT that has the specified type argument.
Namespace: DigitalRune.LinqAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntaxpublic static IEnumerable<T> Empty<T>()
Public Shared Function Empty(Of T) As IEnumerable(Of T)
public:
generic<typename T>
static IEnumerable<T>^ Empty()
static member Empty : unit -> IEnumerable<'T>
Type Parameters
- T
-
The type to assign to the type parameter of the returned generic
IEnumerableT.
Return Value
Type:
IEnumerableT
An empty
IEnumerableT whose type argument is
T.
Remarks
Unlike
EmptyTResult, this method returns a instance which does
not create heap allocations ("garbage") when it is enumerated.
See Also