Click or drag to resize

countCountT Method (IEnumerableT, IEnumerableT, IEqualityComparerIEnumerableT)

Count the number of sub-enumerables in this that are equal to target.

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static int Count<T>(
	this IEnumerable<T> this,
	IEnumerable<T> target,
	IEqualityComparer<IEnumerable<T>> comp = null
)

Parameters

this
Type: System.Collections.GenericIEnumerableT
The IEnumerableT to count from.
target
Type: System.Collections.GenericIEnumerableT
The sub-enumerables, whose appearances in this are to be counted.
comp (Optional)
Type: System.Collections.GenericIEqualityComparerIEnumerableT
The IEqualityComparerT to use to equate this's sub-enumerables to target. will set to default IEqualityComparerT.

Type Parameters

T
The type of this.

Return Value

Type: Int32
The number of sub-enumerables in this that are equal to target by comp.

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).
See Also