Kelary.Infrastructure/Converters/LinearTransformConverter.cs
/// <summary>
/// Converts object to double value.
/// </summary>
/// <param name="value"></param>
/// <param name="defaultValue"></param>
/// <returns></returns>
Converts object to double value.
Converts object to double value .
private static double GetDoubleValue(object value, double defaultValue)
        {
            if (value != null)
                try
                {
                    return System.Convert.ToDouble(value);
                }
                catch
                {
                }
            return defaultValue;
        }
private static double GetDoubleValue ( object value , double defaultValue ) { if ( value != null ) try { return System . Convert . ToDouble ( value ) ; } catch { } return defaultValue ; }
Converts object to double value.
Converts object to double value .
None
value
object
None
defaultValue
double
None