SymbolCollection.T..TryGetInstances Method

Try to get instances with predicate function

Namespace:  TwinCAT.TypeSystem.Generic
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public bool TryGetInstances(
    Func<T, bool> predicate,
    bool recurse,
    out IList<T>? instances
)

Parameters

predicate

Type: System.Func.T, Boolean.
The predicate function

recurse

Type: System.Boolean
if set to true the symbol hierarchy will be searched recursively.

instances

Type: System.Collections.Generic.IList.T..
The instances.

Return Value

Type: Boolean
true if the Instance(s) is/are found, false otherwise.

Reference

SymbolCollection.T. Class

TwinCAT.TypeSystem.Generic Namespace