Пример #1
0
            public int Compare(IColumnLocation x, IColumnLocation y)
            {
                var underComparisonX = new ColumnLocation(x.RowNesting, x.ColumnNesting);
                var underComparisonY = new ColumnLocation(y.RowNesting, y.ColumnNesting);

                return(underComparisonY.CompareTo(underComparisonX));
            }
Пример #2
0
 /// <summary>
 /// Creates <see cref="RowLocation"/> from <see cref="ColumnLocation"/>.
 /// </summary>
 /// <param name="columnLocation"></param>
 /// <param name="rowNumber"></param>
 public RowLocation(ColumnLocation columnLocation, int rowNumber)
     : this(new List <int>(columnLocation.RowNesting) { rowNumber }.ToArray(),
            columnLocation.ColumnNesting.ToArray())
 {
 }