[]
        
(Showing Draft Content)

FarPoint.CalcEngine.CalcConvert.TryConvert

TryConvert Method

TryConvert(object, ref decimal)

Convert a value to decimal value. The converted value is matched with IsNumber function.

Declaration
public static bool TryConvert(object value, ref decimal decimalValue)
Public Shared Function TryConvert(value As Object, ByRef decimalValue As Decimal) As Boolean
Parameters
Type Name Description
object value

The value.

decimal decimalValue

The decimal value.

Returns
Type Description
bool

TryConvert(object, ref double)

Convert a value to double value. The converted value is matched with IsNumber function.

Declaration
public static bool TryConvert(object value, ref double doubleValue)
Public Shared Function TryConvert(value As Object, ByRef doubleValue As Double) As Boolean
Parameters
Type Name Description
object value

The value.

double doubleValue

The double value.

Returns
Type Description
bool