Z.Expressions.ListDictionary.Contains C# (CSharp) Method

Contains() public method

public Contains ( object key ) : bool
key object
return bool
        public bool Contains(object key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key", "error");
            }
            for (var node = head; node != null; node = node.next)
            {
                var oldKey = node.key;
                if ((comparer == null) ? oldKey.Equals(key) : comparer.Compare(oldKey, key) == 0)
                {
                    return true;
                }
            }
            return false;
        }