[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CollectionBase-1.Exists

Exists Method

Exists<TTarget>()

Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.

Declaration
public bool Exists<TTarget>() where TTarget : T
Public Function Exists(Of TTarget As T)() As Boolean
Returns
Type Description
bool

true if the List<T> contains one or more elements that match the conditions defined by the specified predicate; otherwise, false.

Type Parameters
Name Description
TTarget

Exists<TTarget>(Predicate<TTarget>)

Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.

Declaration
public bool Exists<TTarget>(Predicate<TTarget> match) where TTarget : T
Public Function Exists(Of TTarget As T)(match As Predicate(Of TTarget)) As Boolean
Parameters
Type Name Description
Predicate<TTarget> match

The Predicate<T> delegate that defines the conditions of the elements to search for.

Returns
Type Description
bool

true if the List<T> contains one or more elements that match the conditions defined by the specified predicate; otherwise, false.

Type Parameters
Name Description
TTarget
Exceptions
Type Condition
ArgumentNullException

match is null.