public bool Equals(TileRef other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(TileId.Equals(other.TileId) && TileSetId.Equals(other.TileSetId)); }