[]
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.
public static bool TryAsNumber(object obj, out double v)
Type | Name | Description |
---|---|---|
object | obj | Value to check. |
double | v | Double value. |
Type | Description |
---|---|
bool | Returns true if |