public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Term.GetHashCode();
                hashcode = (hashcode * 397) + Leader.GetHashCode();
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Entries);
                hashcode = (hashcode * 397) + PrevLogIndex.GetHashCode();
                hashcode = (hashcode * 397) + PrevLogTerm.GetHashCode();
                hashcode = (hashcode * 397) + LeaderCommit.GetHashCode();
                if (__isset.header)
                {
                    hashcode = (hashcode * 397) + Header.GetHashCode();
                }
            }
            return(hashcode);
        }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Rarity;
         hashCode = (hashCode * 397) ^ (Entitlement != null ? Entitlement.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ EntitlementRequired.GetHashCode();
         hashCode = (hashCode * 397) ^ ExcludeFromCardGeneration.GetHashCode();
         hashCode = (hashCode * 397) ^ (Faction?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Leader != null ? Leader.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ForegroundImage != null ? ForegroundImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GameObject != null ? GameObject.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LastStandNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ EnergyCost;
         hashCode = (hashCode * 397) ^ (PlayType?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Keywords?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
예제 #3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Term.GetHashCode();
                hashcode = (hashcode * 397) + CommitLogIndex.GetHashCode();
                hashcode = (hashcode * 397) + CommitLogTerm.GetHashCode();
                hashcode = (hashcode * 397) + Leader.GetHashCode();
                hashcode = (hashcode * 397) + RequireIdentifier.GetHashCode();
                hashcode = (hashcode * 397) + RegenerateIdentifier.GetHashCode();
                if (__isset.partitionTableBytes)
                {
                    hashcode = (hashcode * 397) + PartitionTableBytes.GetHashCode();
                }
                if (__isset.header)
                {
                    hashcode = (hashcode * 397) + Header.GetHashCode();
                }
            }
            return(hashcode);
        }