Method GetCount
GetCount(IEnumerable)
Gets the count of elements in an IEnumerable. Uses ICollection for efficiency when available.
public static int GetCount(IEnumerable enumerable)
Parameters
enumerable
IEnumerableThe enumerable collection.
Returns
- int
The number of elements.