Boo.Lang.Hash.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (this == obj) return true;
            if (obj == null) return false;
            if (GetType() != obj.GetType()) return false;

            Hash other = (Hash) obj;
            if (Count != other.Count) return false;

            foreach (DictionaryEntry entry in other)
            {
                if (!ContainsKey(entry.Key)) return false;
                if (!RuntimeServices.EqualityOperator(entry.Value, this[entry.Key])) return false;
            }
            return true;
        }