コード例 #1
0
        public int Get(T obj)
        {
            DatabaseImpl db = (DatabaseImpl)Database;

            if (root == 0)
            {
                throw new DatabaseException(DatabaseException.ErrorCode.KEY_NOT_FOUND);
            }
            return(BitIndexPage.find(db, root, obj.Oid, height));
        }
コード例 #2
0
        new public int Get(object obj)
#endif
        {
            StorageImpl db = (StorageImpl)Storage;

            if (root == 0)
            {
                throw new StorageError(StorageError.ErrorCode.KEY_NOT_FOUND);
            }
#if USE_GENERICS
            return(BitIndexPage.find(db, root, db.GetOid(obj), height));
#else
            return(BitIndexPage.find(db, root, db.GetOid(obj), height));
#endif
        }