private static int LocationComparer(IPreviewItem leftItem, IPreviewItem rightItem) { var left = (LocationPreviewItem)leftItem; var right = (LocationPreviewItem)rightItem; if (left.Line != right.Line) { return(left.Line - right.Line); } return(left.Column - right.Column); }
private static int LocationComparer(IPreviewItem leftItem, IPreviewItem rightItem) { var left = (LocationPreviewItem)leftItem; var right = (LocationPreviewItem)rightItem; if (left.Line != right.Line) { return left.Line - right.Line; } return left.Column - right.Column; }
public PreviewList(IPreviewItem[] items) { _items = items; }