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

Gets value indicationg if given colection is empty

Namespace: Tools.CollectionsT
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 examine

Return Value

True if collection.GetEnumerator.MoveNext returns false.

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 .

See Also