public int Compare(MyLineSegmentOverlapResult <T> x, MyLineSegmentOverlapResult <T> y) => x.Distance.CompareTo(y.Distance);
public int Compare(MyLineSegmentOverlapResult <T> x, MyLineSegmentOverlapResult <T> y) { return(x.Distance.CompareTo(y.Distance)); }