示例#1
0
        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);
        }
示例#2
0
        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;
        }
示例#3
0
 public PreviewList(IPreviewItem[] items) {
     _items = items;
 }