Azavea.Open.DAO.Util.CachingDataReader.GetCachedValue C# (CSharp) Method

GetCachedValue() protected method

Will only ever look up the value once.
protected GetCachedValue ( int i ) : object
i int 0-based column index.
return object
        protected virtual object GetCachedValue(int i)
        {
            object retVal = _valsByIndex[i];
            if (retVal == DBNull.Value)
            {
                retVal = GetDataObject(i);
                _valsByIndex[i] = retVal;
            }
            return retVal;
        }