Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Value.GetHashCode();
         hashCode = (hashCode * 397) ^ Relative.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Skill;
         return(hashCode);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = (int)Skill;
         hash = (hash * 397) ^ Relative.GetHashCode();
         hash = (hash * 397) ^ Value.GetHashCode();
         return(hash);
     }
 }
Пример #3
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Reference != null)
                {
                    hashCode = hashCode * 59 + Reference.GetHashCode();
                }

                if (Position != null)
                {
                    hashCode = hashCode * 59 + Position.GetHashCode();
                }

                if (Relative != null)
                {
                    hashCode = hashCode * 59 + Relative.GetHashCode();
                }

                if (ValueFormat != null)
                {
                    hashCode = hashCode * 59 + ValueFormat.GetHashCode();
                }

                if (Increasing != null)
                {
                    hashCode = hashCode * 59 + Increasing.GetHashCode();
                }

                if (Decreasing != null)
                {
                    hashCode = hashCode * 59 + Decreasing.GetHashCode();
                }

                if (Font != null)
                {
                    hashCode = hashCode * 59 + Font.GetHashCode();
                }

                return(hashCode);
            }
        }
Пример #4
0
 public override int GetHashCode()
 {
     return(Relative.GetHashCode());
 }