Smrf.AppLib.ExcelTableReader.TryGetDoubleFromCellInCurrentRow C# (CSharp) Method

TryGetDoubleFromCellInCurrentRow() protected method

protected TryGetDoubleFromCellInCurrentRow ( String sColumnName, Double &dDouble ) : System.Boolean
sColumnName String
dDouble Double
return System.Boolean
    TryGetDoubleFromCellInCurrentRow
    (
        String sColumnName,
        out Double dDouble
    )
    {
        Debug.Assert( !String.IsNullOrEmpty(sColumnName) );

        dDouble = Double.MinValue;
        Int32 iColumnOneBased;

        if ( m_oColumnIndexesOneBased.TryGetValue(sColumnName,
            out iColumnOneBased) )
        {
            return ( ExcelUtil.TryGetDoubleFromCell(
                m_aoCurrentSubrangeValues, m_iCurrentRowOneBased,
                iColumnOneBased, out dDouble) );
        }

        return (false);
    }