Telerik UI for Windows Phone by Progress

Gets a boolean value determining whether the IEnumerable implementation has items.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Core (in Telerik.Windows.Core.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)


public static bool IsEmpty(
	this IEnumerable enumerable
Visual Basic
<ExtensionAttribute> _
Public Shared Function IsEmpty ( _
	enumerable As IEnumerable _
) As Boolean
Visual C++
static bool IsEmpty(
	IEnumerable^ enumerable


Type: System.Collections..::..IEnumerable
The IEnumerable implementation which is checked whether it is empty or not.

Return Value

True if the IEnumerable is empty, otherwise 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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also