public int CompareTo(LayerPosition other) { int r = KnownLayer.CompareTo(other.KnownLayer); if (r != 0) { return(r); } else { return(Position.CompareTo(other.Position)); } }
public int CompareTo(LayerPosition other) { var r = KnownLayer.CompareTo(other.KnownLayer); return(r != 0 ? r : Position.CompareTo(other.Position)); }