Beispiel #1
0
        public int GetArraySizeAt(CSVRow row, int columnIndex)
        {
            int rowIndex = this.m_vCSVRows.IndexOf(row);

            if (rowIndex == -1)
            {
                return(0);
            }
            CSVColumn c          = this.m_vCSVColumns[columnIndex];
            int       nextOffset = 0;

            if (rowIndex + 1 >= this.m_vCSVRows.Count)
            {
                nextOffset = c.GetSize();
            }
            else
            {
                CSVRow nextRow = this.m_vCSVRows[rowIndex + 1];
                nextOffset = nextRow.GetRowOffset();
            }

            int currentOffset = row.GetRowOffset();

            return(c.GetArraySize(currentOffset, nextOffset));
        }
Beispiel #2
0
        public int GetArraySizeAt(CSVRow row, int columnIndex)
        {
            int num = this.m_vCSVRows.IndexOf(row);

            if (num == -1)
            {
                return(0);
            }
            CSVColumn cSVColumn = this.m_vCSVColumns[columnIndex];
            int       nextOffset;

            if (num + 1 >= this.m_vCSVRows.Count)
            {
                nextOffset = cSVColumn.GetSize();
            }
            else
            {
                nextOffset = this.m_vCSVRows[num + 1].GetRowOffset();
            }
            return(CSVColumn.GetArraySize(row.GetRowOffset(), nextOffset));
        }
Beispiel #3
0
        public int GetArraySizeAt(CSVRow row, int columnIndex)
        {
            var rowIndex = m_vCSVRows.IndexOf(row);

            if (rowIndex == -1)
            {
                return(0);
            }
            var c          = m_vCSVColumns[columnIndex];
            var nextOffset = 0;

            if (rowIndex + 1 >= m_vCSVRows.Count)
            {
                nextOffset = c.GetSize();
            }
            else
            {
                var nextRow = m_vCSVRows[rowIndex + 1];
                nextOffset = nextRow.GetRowOffset();
            }
            var currentOffset = row.GetRowOffset();

            return(CSVColumn.GetArraySize(currentOffset, nextOffset));
        }