EnumValue.T..TryParse Method

Parse EnumType string

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

Syntax

C#

public static bool TryParse(
    IEnumType<T> type,
    string str,
    out EnumValue<T>? value
)

Parameters

type

Type: TwinCAT.TypeSystem.IEnumType.T.
The type.

str

Type: System.String
The string.

value

Type: TwinCAT.TypeSystem.EnumValue.T..
The value.

Return Value

Type: Boolean
true if the EnumValue.T. could be parsed, false otherwise.

Reference

EnumValue.T. Class

TwinCAT.TypeSystem Namespace