public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj is Coordinates) { Coordinates other = (Coordinates)obj; if (chunk.Equals(other.chunk) && indices.Equals(other.indices)) { return(true); } } return(false); }