[]
Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.
public bool Exists<TTarget>() where TTarget : T
Public Function Exists(Of TTarget As T)() As Boolean
Type | Description |
---|---|
bool | true if the List<T> contains one or more elements that match the conditions defined by the specified predicate; otherwise, false. |
Name | Description |
---|---|
TTarget |
Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.
public bool Exists<TTarget>(Predicate<TTarget> match) where TTarget : T
Public Function Exists(Of TTarget As T)(match As Predicate(Of TTarget)) As Boolean
Type | Name | Description |
---|---|---|
Predicate<TTarget> | match | The Predicate<T> delegate that defines the conditions of the elements to search for. |
Type | Description |
---|---|
bool | true if the List<T> contains one or more elements that match the conditions defined by the specified predicate; otherwise, false. |
Name | Description |
---|---|
TTarget |
Type | Condition |
---|---|
ArgumentNullException | match is null. |