Table of Contents

Class BooleanControlExtensions

Namespace
HeroKit.Booleans
Assembly
HeroKit.dll

Provides extension methods for bool value checking and manipulation.

public static class BooleanControlExtensions
Inheritance
BooleanControlExtensions
Inherited Members

Methods

AllFalse(IEnumerable<bool>)

Returns true if all boolean values in the collection are false.

public static bool AllFalse(this IEnumerable<bool> values)

Parameters

values IEnumerable<bool>

The collection of boolean values.

Returns

bool

True if all values are false, otherwise false.

AllTrue(IEnumerable<bool>)

Returns true if all boolean values in the collection are true.

public static bool AllTrue(this IEnumerable<bool> values)

Parameters

values IEnumerable<bool>

The collection of boolean values.

Returns

bool

True if all values are true, otherwise false.

AnyFalse(IEnumerable<bool>)

Returns true if any boolean value in the collection is false.

public static bool AnyFalse(this IEnumerable<bool> values)

Parameters

values IEnumerable<bool>

The collection of boolean values.

Returns

bool

True if at least one value is false, otherwise true.

AnyTrue(IEnumerable<bool>)

Returns true if any boolean value in the collection is true.

public static bool AnyTrue(this IEnumerable<bool> values)

Parameters

values IEnumerable<bool>

The collection of boolean values.

Returns

bool

True if at least one value is true, otherwise false.

IsFalse(bool?)

Checks whether a nullable boolean value is false.

public static bool IsFalse(this bool? value)

Parameters

value bool?

The nullable boolean value.

Returns

bool

True if the value is not null and false, otherwise false.

IsTrue(bool?)

Checks whether a nullable boolean value is true.

public static bool IsTrue(this bool? value)

Parameters

value bool?

The nullable boolean value.

Returns

bool

True if the value is not null and true, otherwise false.