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. |
True if the count is greater than or equal to the specified value.
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.