Click or drag to resize

TallierExtensionsTallyAllT Method (TypeTallyT, FuncT, Boolean, Boolean)

Add an all to a tally.

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static TypeTally<T, bool> TallyAll<T>(
	this TypeTally<T> this,
	Func<T, bool> cond,
	bool break = false
)

Parameters

this
Type: WhetStone.LoopingTypeTallyT
The tally to add to.
cond
Type: SystemFuncT, Boolean
The condition for which to count an element.
break (Optional)
Type: SystemBoolean
Whether to break when an element is found to return false.

Type Parameters

T
The type of the tally.

Return Value

Type: TypeTallyT, Boolean
this, to allow piping.

Usage Note

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