EnumerableUtility.CountIsAtLeast<T> method

Returns true if the count is greater than or equal to the specified value.

public static bool CountIsAtLeast<T>(this IEnumerable<T> source, int count)
parameter description
T The type of the element.
source The sequence.
count The count.

Return Value

True if the count is greater than or equal to the specified value.

Remarks

This method will often be faster than calling Enumerable.Count() and testing that value when the count may be much larger than the count being tested.

See Also