Esempio n. 1
0
        /// <summary>Returns a hash code for this instance.</summary>
        /// <returns>A hash code for this instance.</returns>
        /// <seealso cref="M:System.Object.GetHashCode()"/>
        public override int GetHashCode()
        {
            var hash = new MultiplyByPrimesHash();

            hash.AddRange(this.Children);
            hash.Add(this.Kind);
            hash.Add(this.FirstToken);
            hash.Add(this.LastToken);
            hash.AddRange(this.Annotations);
            return(hash.GetHashCode());
        }
Esempio n. 2
0
        /// <summary>Returns a hash code for this instance.</summary>
        /// <returns>A hash code for this instance.</returns>
        public override int GetHashCode()
        {
            var hash = new MultiplyByPrimesHash();

            hash.Add(this.SummaryText);
            hash.Add(this.RemarksText);
            hash.Add(this.G4DeclaredName);
            hash.Add(this.CSharpName);
            hash.Add(this.Base);
            hash.Add((int)this.Kind);
            hash.AddRange(this.Members);
            hash.AddRange(this.ToStringEntries);
            return(hash.GetHashCode());
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            var hash = new MultiplyByPrimesHash();

            hash.Add(this.SourceFilePath);
            hash.Add(this.MetaData);
            hash.AddRange(this.Types);
            return(hash.GetHashCode());
        }