collapse_all
expand_all
collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++
DPSF API Documentation
GenericCollectionsExtensions
.
.
::
..Exists<(Of <(<'T>)>)> Method
gradient

Returns true if the List contains elements that match the conditions defined by the specified predicate.

Namespace: System.Collections.Generic

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public static bool Exists<T>(

 this List<T> list,

 Func<T, boolmatch

)

Visual Basic

<ExtensionAttribute>

Public Shared Function Exists(Of T) (

 list As List(Of T),

 match As Func(Of T, Boolean)

As Boolean

Visual C++

public:

[ExtensionAttribute]

generic<typename T>

static bool Exists(

 List<T>^ list,

 Func<T, bool>^ match

)

Parameters

list

Type: System.Collections.Generic..::..List<(Of <(<'T>)>)>

The List to search for a match in.

match

Type: System..::..Func<(Of <(<'T, Boolean>)>)>

The Predicate delegate that defines the conditions of the elements to match against.

collapse_allType Parameters

T

The type of elements held by the List.

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type List<(Of <(<'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).

collapse_allSee Also

GenericCollectionsExtensions Class

GenericCollectionsExtensions Members

System.Collections.Generic Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com