Telerik UI for Windows Phone by Progress

Gets the number of items in an IEnumerable.

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


public static int Count(
	this IEnumerable enumerable
Visual Basic
<ExtensionAttribute> _
Public Shared Function Count ( _
	enumerable As IEnumerable _
) As Integer
Visual C++
static int Count(
	IEnumerable^ enumerable


Type: System.Collections..::..IEnumerable
The IEnumerable instance from which to get the item count.

Return Value

Returns the number of items in an IEnumerable.

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