| ReflectionUtilsTryConvertValue Method (Object, Type, Object) |
Tries to convert the specified value to the specified value.
Namespace:
Slash.Unity.DataBind.Core.Utils
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static bool TryConvertValue(
Object rawValue,
Type type,
out Object convertedValue
)
Public Shared Function TryConvertValue (
rawValue As Object,
type As Type,
<OutAttribute> ByRef convertedValue As Object
) As Boolean
public:
static bool TryConvertValue(
Object^ rawValue,
Type^ type,
[OutAttribute] Object^% convertedValue
)
static member TryConvertValue :
rawValue : Object *
type : Type *
convertedValue : Object byref -> bool
Parameters
- rawValue
- Type: SystemObject
Value to convert. - type
- Type: SystemType
Type to convert to. - convertedValue
- Type: SystemObject
Converted value.
Return Value
Type:
BooleanTrue if value could be converted; otherwise, false.
See Also