[]
        
(Showing Draft Content)

C1.Document.Utils.TryAsNumber

TryAsNumber Method

TryAsNumber(object, out double)

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 static bool TryAsNumber(object obj, out double v)
Parameters
Type Name Description
object obj

Value to check.

double v

Double value.

Returns
Type Description
bool

Returns true if obj contains numeric value.