BplusDotNet.xBucket.Remove C# (CSharp) Method

Remove() public method

public Remove ( string key ) : void
key string
return void
        public void Remove(string key)
        {
            int index = 0;
            while (index<this.keys.Count)
            {
                string thiskey = (string) this.keys[index];
                if (this.owner.Compare(thiskey, key)==0)
                {
                    this.values.RemoveAt(index);
                    this.keys.RemoveAt(index);
                    return;
                }
                index++;
            }
            throw new BplusTreeBadKeyValue("cannot remove missing key: "+key);
        }