Exemple #1
0
        public override int GetHashCode()
        {
            IHashCodeBuilder hashCodeBuilder = new HashCodeBuilder();

            hashCodeBuilder.Add(control);
            hashCodeBuilder.Add((int)States);
            hashCodeBuilder.Add(Parent);

            return(hashCodeBuilder.GetHashCode());
        }
        public override int GetHashCode()
        {
            IHashCodeBuilder hashCodeBuilder = new HashCodeBuilder();

            foreach (string @class in Classes)
            {
                hashCodeBuilder.Add(@class);
            }

            hashCodeBuilder.Add(Tag);
            hashCodeBuilder.Add(Id);
            hashCodeBuilder.Add((int)States);
            hashCodeBuilder.Add(Parent);

            return(hashCodeBuilder.GetHashCode());
        }