Smrf.AppLib.ExcelTableReader.TryGetInt32FromCellInCurrentRow C# (CSharp) Méthode

TryGetInt32FromCellInCurrentRow() protected méthode

protected TryGetInt32FromCellInCurrentRow ( String sColumnName, Int32 &iInt32 ) : System.Boolean
sColumnName String
iInt32 System.Int32
Résultat System.Boolean
    TryGetInt32FromCellInCurrentRow
    (
        String sColumnName,
        out Int32 iInt32
    )
    {
        Debug.Assert( !String.IsNullOrEmpty(sColumnName) );

        iInt32 = Int32.MinValue;
        Int32 iColumnOneBased;

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

        return (false);
    }