Esempio n. 1
0
        internal ScalableSet(StorageImpl storage, int initialSize)
            : base(storage)
        {
#if USE_GENERICS
            if (initialSize <= BTREE_THRESHOLD)
            {
                link = storage.CreateLink <T>(initialSize);
            }
            else
            {
                pset = storage.CreateSet <T>();
            }
#else
            if (initialSize <= BTREE_THRESHOLD)
            {
                link = storage.CreateLink(initialSize);
            }
            else
            {
                pset = storage.CreateSet();
            }
#endif
        }