Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Unknown1 != 0UL)
            {
                hash ^= Unknown1.GetHashCode();
            }
            if (BadgeId != 0)
            {
                hash ^= BadgeId.GetHashCode();
            }
            if (BadgeName.Length != 0)
            {
                hash ^= BadgeName.GetHashCode();
            }
            if (Unknown2 != 0)
            {
                hash ^= Unknown2.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Compute hash of this object based on his properties
 /// </summary>
 /// <returns>This object hashcode</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (AccountName != null ? AccountName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BadgeId.GetHashCode();
         hashCode = (hashCode * 397) ^ (BadgeDescription != null ? BadgeDescription.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #3
0
 public override int GetHashCode()
 {
     return(BadgeId.GetHashCode());
 }