コード例 #1
0
        public override int GetHashCode()
        {
            HashCodeComputer hash = new HashCodeComputer();

            VisitKeys(hash);
            return(hash.GetHashCode());
        }
コード例 #2
0
        public override int GetHashCode()
        {
            HashCodeComputer <VALUE> hash = new HashCodeComputer <VALUE>();

            VisitEntries(hash);
            return(hash.GetHashCode());
        }
コード例 #3
0
            public override bool Equals(object o)
            {
                if (this == o)
                {
                    return(true);
                }
                if (o == null || this.GetType() != o.GetType())
                {
                    return(false);
                }
                HashCodeComputer that = ( HashCodeComputer )o;

                return(Hash == that.Hash);
            }
コード例 #4
0
            public override bool Equals(object o)
            {
                if (this == o)
                {
                    return(true);
                }
                if (o == null || this.GetType() != o.GetType())
                {
                    return(false);
                }
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: HashCodeComputer<?> that = (HashCodeComputer<?>) o;
                HashCodeComputer <object> that = (HashCodeComputer <object>)o;

                return(Hash == that.Hash);
            }