Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
anyAndAll Class
anyAndAll Methods
AnyAndAll Method
AnyAndAll Method (IEnumerable(Boolean))
AnyAndAll(T) Method (IEnumerable(T), Func(T, Boolean))
anyAndAll
AnyAndAll
T
Method (IEnumerable
T
, Func
T
, Boolean
)
Checks that all members of the
IEnumerable
T
are
(when subject to
cond
) and that the
IEnumerable
T
is not empty.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
bool
AnyAndAll
<T>(
this
IEnumerable
<T>
this
,
Func
<T,
bool
>
cond
)
Parameters
this
Type:
System.Collections.Generic
IEnumerable
T
The
IEnumerable
T
to check.
cond
Type:
System
Func
T
,
Boolean
The selector to use on each element to check for trueness.
Type Parameters
T
The
IEnumerable
T
's type.
Return Value
Type:
Boolean
Whether
cond
evaluates all elements to
and
this
is not empty.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
T
. 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
Reference
anyAndAll Class
AnyAndAll Overload
WhetStone.Looping Namespace