Axiom.Compiler.Framework.PrologVariableDictionary.Remove C# (CSharp) Метод

Remove() публичный Метод

public Remove ( object key ) : void
key object
Результат void
        public void Remove(object key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            string name = (string)key;
            for(int i = 0; i < _items.Count; i++)
            {
                PrologVariableDictionaryEntry entry = (PrologVariableDictionaryEntry)_items[i];
                if(entry.Name == name)
                {
                    _items.RemoveAt(i);
                    return;
                }
            }
        }