[This is preliminary documentation and is subject to change.]

Gets value indicating if given collection is empty

Namespace: Tools.LinqT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static bool IsEmpty(
	this IEnumerable collection
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function IsEmpty ( _
	collection As IEnumerable _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool IsEmpty(
	IEnumerable^ collection
)
F#
static member IsEmpty : 
        collection:IEnumerable -> bool 
JScript
public static function IsEmpty(
	collection : IEnumerable
) : boolean

Parameters

collection
Type: System.Collections..::..IEnumerable
Collection to check emptyness of

Return Value

True if first element of collection cannot be enumerated using collection.GetEnumerator.MoveNext.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptioncollection is null

See Also