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); }
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); }