コード例 #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return((Position.GetHashCode() * 397) ^ MapId.GetHashCode());
     }
 }
コード例 #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MapIndex.GetHashCode();
         hashCode = (hashCode * 397) ^ GridIndex.GetHashCode();
         hashCode = (hashCode * 397) ^ GridIndices.GetHashCode();
         hashCode = (hashCode * 397) ^ Tile.GetHashCode();
         return(hashCode);
     }
 }