Verifies that at least one element of the sequence meets the specified condition.
Namespace:
MbUnit.Framework
Assembly:
MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void Exists<T>(
IEnumerable<T> values,
Predicate<T> predicate
)
|
| Visual Basic (Declaration) |
|---|
Public Shared Sub Exists(Of T) ( _
values As IEnumerable(Of T), _
predicate As Predicate(Of T) _
) |
Parameters
- values
- Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The sequence of values to evaluate.
- predicate
- Type: System..::.Predicate<(Of <(T>)>)
The condition that must be fulfilled (returns true) by at least one element of the sequence.
Type Parameters
- T
- The type of values in the sequence.
Exceptions
See Also