Allows you to rewrite, eg: var foo = o.Prop1 == 1 && o.Prop2 == 2 && o.Prop3 == 3 ... as AllOf( o.Prop1 == 1, o.Prop2 == 2, o.Prop3 == 3 ) (which is easier to read & manipulate, eg in a test, especially if you import with using static)
More...
|
| static bool | AllOf (bool flag1, bool flag2, params bool[] moreFlags) |
| | Returns the result of and'ing all booleans together.
|
| |
| static bool | AllOf (Func< bool > generator1, Func< bool > generator2, params Func< bool >[] moreGenerators) |
| | Returns the result of and'ing all booleans (lazy eval) together.
|
| |
| static bool | AnyOf (bool flag1, bool flag2, params bool[] moreFlags) |
| | Returns the result of or'ing all booleans together.
|
| |
| static bool | AnyOf (Func< bool > generator1, Func< bool > generator2, params Func< bool >[] moreGenerators) |
| | Returns the result of or'ing all booleans (lazy eval) together.
|
| |
| static bool | NoneOf (bool flag1, bool flag2, params bool[] moreFlags) |
| | Returns true when none of the inputs are true.
|
| |
| static bool | NoneOf (Func< bool > generator1, Func< bool > generator2, params Func< bool >[] moreGenerators) |
| | Returns true when none of the inputs are true (lazy eval)
|
| |
Allows you to rewrite, eg: var foo = o.Prop1 == 1 && o.Prop2 == 2 && o.Prop3 == 3 ... as AllOf( o.Prop1 == 1, o.Prop2 == 2, o.Prop3 == 3 ) (which is easier to read & manipulate, eg in a test, especially if you import with using static)
◆ AllOf() [1/2]
| static bool PeanutButter.Utils.Logic.AllOf |
( |
bool |
flag1, |
|
|
bool |
flag2, |
|
|
params bool[] |
moreFlags |
|
) |
| |
|
static |
Returns the result of and'ing all booleans together.
- Parameters
-
- Returns
◆ AllOf() [2/2]
| static bool PeanutButter.Utils.Logic.AllOf |
( |
Func< bool > |
generator1, |
|
|
Func< bool > |
generator2, |
|
|
params Func< bool >[] |
moreGenerators |
|
) |
| |
|
static |
Returns the result of and'ing all booleans (lazy eval) together.
- Parameters
-
| generator1 | |
| generator2 | |
| moreGenerators | |
- Returns
◆ AnyOf() [1/2]
| static bool PeanutButter.Utils.Logic.AnyOf |
( |
bool |
flag1, |
|
|
bool |
flag2, |
|
|
params bool[] |
moreFlags |
|
) |
| |
|
static |
Returns the result of or'ing all booleans together.
- Parameters
-
- Returns
◆ AnyOf() [2/2]
| static bool PeanutButter.Utils.Logic.AnyOf |
( |
Func< bool > |
generator1, |
|
|
Func< bool > |
generator2, |
|
|
params Func< bool >[] |
moreGenerators |
|
) |
| |
|
static |
Returns the result of or'ing all booleans (lazy eval) together.
- Parameters
-
| generator1 | |
| generator2 | |
| moreGenerators | |
- Returns
◆ NoneOf() [1/2]
| static bool PeanutButter.Utils.Logic.NoneOf |
( |
bool |
flag1, |
|
|
bool |
flag2, |
|
|
params bool[] |
moreFlags |
|
) |
| |
|
static |
Returns true when none of the inputs are true.
- Parameters
-
- Returns
◆ NoneOf() [2/2]
| static bool PeanutButter.Utils.Logic.NoneOf |
( |
Func< bool > |
generator1, |
|
|
Func< bool > |
generator2, |
|
|
params Func< bool >[] |
moreGenerators |
|
) |
| |
|
static |
Returns true when none of the inputs are true (lazy eval)
- Parameters
-
| generator1 | |
| generator2 | |
| moreGenerators | |
- Returns
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/Logic.cs