Meta.Microsoft.Help.Id
M:TSD.API.Remoting.Enum`1.ParseOrGetDefault(System.String,`0)

EnumTParseOrGetDefault Method

Parses the given string value and returns the corresponding parsed enum value or the given default value if the string doesn't represent a valid value

Namespace:  TSD.API.Remoting
Assembly:  TSD.API.Remoting (in TSD.API.Remoting.dll) Version: 1.0.0
Syntax
public static T ParseOrGetDefault(
	string value,
	T defaultValue
)

Parameters

value
Type: SystemString
The string to parse
defaultValue
Type: T
The default value to return if the string value is invalid

Return Value

Type: T
The specific enum value parsed from the input string or the default value
See Also