Click or drag to resize
Ranorex

ValueConverterTryFromString Method (String, Type, Object)

Creates an instance of the specified type from string data.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static bool TryFromString(
	string value,
	Type targetType,
	out Object result
)

Parameters

value
Type: SystemString
The string data representation of the type.
targetType
Type: SystemType
The target type to convert to.
result
Type: SystemObject
When this method returns, contains the converted object instance.

Return Value

Type: Boolean
If true the value can be converted to the specified targetType.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf value is null and targetType is a value type or targetType is null.
See Also