DynamicValue.TryResolveValue Method

Tries to resolves the Value object to its primitive value.

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

Syntax

C#

public bool TryResolveValue(
    bool resolveEnumToPrimitive,
    out Object?? value
)

Parameters

resolveEnumToPrimitive

Type: System.Boolean
if set to trueIEnumValues are resolved to their primitives also.

value

Type: System.Object.
The value.

Return Value

Type: Boolean
true if value can be resolved, false otherwise.

Implements

IValue.TryResolveValue(Boolean, Object.)

Reference

DynamicValue Class

TwinCAT.TypeSystem Namespace