SymbolIterator.T. Constructor (IEnumerable.T., Boolean, SymbolIterationMask, Func.T, Boolean., Func.T, Boolean.)

Initializes a new instance of the SymbolIterator.T. class.

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

Syntax

C#

public SymbolIterator(
    IEnumerable<T> symbols,
    bool recurse,
    SymbolIterationMask mask,
    Func<T, bool>? selector,
    Func<T, bool>? areChildsIterated
)

Parameters

symbols

Type: System.Collections.Generic.IEnumerable.T.
Input collection (root objects).

recurse

Type: System.Boolean
if set to true, the iterator works recursively over all subsymbols.

mask

Type: TwinCAT.TypeSystem.SymbolIterationMask
Specifies a mask over the symbols, that filters out specific symbol categories. The default is All and all symbols are shown.

selector

Type: System.Func.T, Boolean.
Predicate function indicating that symbols are visible for the iteration. The default value null returns all symbols (of the specified mask).

areChildsIterated

Type: System.Func.T, Boolean.
Predicate function indicating that childs of the actual symbol should be iterated (in recurse mode). The default value iterates all child (of the specified mask).

Reference

SymbolIterator.T. Class

SymbolIterator.T. Overload

TwinCAT.TypeSystem.Generic Namespace