Appearance
TryConvert Method
Definition
- Namespace:
JASE - Assembly:
JASE.ReflectionTools.dll
Overloads
| Name | Description |
|---|---|
bool TryConvert(object input, Type destinationType, out object convertedValue) | Attemps to convert the input object to the specified destination type. |
bool TryConvert(object input, Type destinationType, out T convertedValue) | Attemps to convert the input object to the specified destination type T. |
bool TryConvert(object input, Type destinationType, out object convertedValue)
csharp
bool TryConvert(object input, Type destinationType, out object convertedValue)Attemps to convert the input object to the specified destination type.
Parameters
| Name | Description |
|---|---|
convertedValue | The converted value |
destinationType | The type to convert the object to. |
input | The object to convert. |
Returns
Boolean True is successful, otherwise false
bool TryConvert(object input, Type destinationType, out T convertedValue)
csharp
bool TryConvert(object input, Type destinationType, out T convertedValue)Attemps to convert the input object to the specified destination type T.
Parameters
| Name | Description |
|---|---|
convertedValue | The converted value of type T |
destinationType | The type to convert the object to. |
input | The object to convert. |
Returns
Boolean True is successful, otherwise false