M_WolfCurses_ArrayExtensions_TrueCount - Maxwolf/WolfCurses GitHub Wiki

ArrayExtensions.TrueCount Method

Determines the count of boolean values in an array that are true. Intended to be used in conjunction with count to determine if all are true for a entire sequence.

Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static int TrueCount(
	this IEnumerable<bool> booleans
)

Parameters

 

booleans
Type: System.Collections.Generic.IEnumerable(Boolean)
Array of bool.

Return Value

Type: Int32
Number of bool values in array that were true.

Usage Note

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

http://stackoverflow.com/a/378282

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

ArrayExtensions Class
WolfCurses Namespace

⚠️ **GitHub.com Fallback** ⚠️