Checks whether object represents numeric value, i.e. it is byte, integer, float etc and converts it to double. Returns false if object is not number.
'Declaration
Public Shared Function TryAsNumber( _
ByVal As System.Object, _
ByRef As System.Double _
) As System.Boolean
public static System.bool TryAsNumber(
System.object ,
out System.double
)
Parameters
- obj
- Value to check.
- v
- Double value.
Return Value
Returns true if contains numeric value.