示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ContentId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)Id;
         hashCode = (hashCode * 397) ^ IsUsableByPlayer.GetHashCode();
         hashCode = (hashCode * 397) ^ (LargeIconImageUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (SmallIconImageUrl?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Description?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (int)Faction;
         hashCode = (hashCode * 397) ^ (int)Id;
         hashCode = (hashCode * 397) ^ (LargeIconImageUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (SmallIconImageUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ ContentId.GetHashCode();
         return(hashCode);
     }
 }