TypeConverterTryConvertToT Method |
Converts the given value to the given type.
A return value indicates whether the operation succeeded.
Namespace:
TB.ComponentModel
Assembly:
UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax public bool TryConvertTo<T>(
Object value,
out T result,
CultureInfo culture = null
)
Parameters
- value
- Type: SystemObject
The value which is converted. - result
- Type: T
An instance of type T whose value is equivalent to the given value if the operation succeeded. - culture (Optional)
- Type: System.GlobalizationCultureInfo
The culture to use. If not given or null, the DefaultCulture is used.
Type Parameters
- T
- The type to which the given value is converted.
Return Value
Type:
Booleantrue if
value was converted successfully; otherwise, false.
See Also