[]
        
(Showing Draft Content)

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

FindAll Method

FindAll<TTarget>()

Retrieves all the T that match the specified type TTarget.

Declaration
public List<TTarget> FindAll<TTarget>() where TTarget : T
Public Function FindAll(Of TTarget As T)() As List(Of TTarget)
Returns
Type Description
List<TTarget>

A List<T> that contains all the T that match the specified type TTarget and match the conditions defined by the specified predicate, if found; otherwise, an empty List<T>.

Type Parameters
Name Description
TTarget

FindAll<TTarget>(Predicate<TTarget>)

Retrieves all the T that match the specified type TTarget and match the conditions defined by the specified predicate.

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

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

Returns
Type Description
List<TTarget>

A List<T> that contains all the T that match the specified type TTarget and match the conditions defined by the specified predicate, if found; otherwise, an empty List<T>.

Type Parameters
Name Description
TTarget
Exceptions
Type Condition
ArgumentNullException

match is null.