Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = -1774268519;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(NodeTypeName);

            hashCode = hashCode * -1521134295 + ChildIndex.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 2
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (ChildIndex != 0)
                    {
                        hash ^= ChildIndex.GetHashCode();
                    }
                    if (Type.Length != 0)
                    {
                        hash ^= Type.GetHashCode();
                    }
                    if (Variable.Length != 0)
                    {
                        hash ^= Variable.GetHashCode();
                    }
                    return(hash);
                }