Click or drag to resize

countAtleastCountAtLeastT Method

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static bool CountAtLeast<T>(
	this IEnumerable<T> this,
	int minCount,
	Func<T, bool> predicate = null
)

Parameters

this
Type: System.Collections.GenericIEnumerableT
The IEnumerableT to count.
minCount
Type: SystemInt32
The number of elements in this that have to satisfy predicate.
predicate (Optional)
Type: SystemFuncT, Boolean
The predicate elements must satisfy. If set to , all elements satisfy.

Type Parameters

T
The type of the IEnumerableT.

Return Value

Type: Boolean
Whether there are at least minCount elements in this that satisfy predicate.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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).
Remarks

After confirming this at least minCount members, enumeration will halt.

The enumeration can halt prematurely in some cases.

See Also