示例#1
0
        private object[,] GetAllValues()
        {
            var result = new object[DataValues.GetLength(0) + 1, HeaderValues.Length];

            CoyyHeadersInToResult(result);
            CopyDataToResult(result);
            return(result);
        }
        private void FillAllValues()
        {
            _allValues = new string[DataValues.GetLength(0) + 1, DataValues.GetLength(1)];
            var numberOfColumns  = DataValues.GetLength(1);
            var NumberOfDataRows = DataValues.GetLength(0);

            FillHeaders(numberOfColumns);
            Array.Copy(DataValues, 0, _allValues, numberOfColumns, numberOfColumns * NumberOfDataRows);
        }
示例#3
0
 private void CopyDataToResult(object[,] result)
 {
     for (int row = 0; row < DataValues.GetLength(0); row++)
     {
         for (int col = 0; col < DataValues.GetLength(1); col++)
         {
             result[row + 1, col] = DataValues[row, col];
         }
     }
 }