DynamicArrayInstance.TryGetElement Method (IList..Int32.., ISymbol.)

Tries to get the array element with the specified indices (jagged array support).

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

Syntax

C#

public bool TryGetElement(
    IList<int[]> jaggedIndices,
    out ISymbol?? symbol
)

Parameters

jaggedIndices

Type: System.Collections.Generic.IList..Int32..
The jagged indices list.

symbol

Type: TwinCAT.TypeSystem.ISymbol.
The symbol.

Return Value

Type: Boolean
true if found, false if the jagged indices specifiers is out-of-range.

Exceptions

Exception

Condition

ArgumentNullException

jaggedIndices

ArgumentOutOfRangeException

jaggedIndices

Reference

DynamicArrayInstance Class

TryGetElement Overload

TwinCAT.TypeSystem Namespace