Exemplo n.º 1
0
        public AdaptiveHashtable <T> Clone()
        {
            var copy = new AdaptiveHashtable <T>(_length, _depth);

            Array.Copy(_values, 0, copy._values, 0, (int)_length);
            copy._loaded        = _loaded;
            copy._loadedIndexes = _loadedIndexes.ToList();
            return(copy);
        }
Exemplo n.º 2
0
        public AdaptiveHashtable <T> Clone()
        {
            var copy = new AdaptiveHashtable <T>(_length, _depth);

            Array.Copy(_values, 0, copy._values, 0, (int)_length);
            for (var i = 0; i < _length; i++)
            {
                copy._values[i] = _values[i].ToArray();
            }
            copy._loaded        = _loaded;
            copy._loadedIndexes = _loadedIndexes.ToList();
            return(copy);
        }