示例#1
0
        private void Read(string str)
        {
            List <string> rowValues = str.Replace("\r\n", "\n").Split('\n').ToList();
            string        HeadStr   = rowValues[0];

            rowValues.RemoveAt(0);
            _headNames = _rowReader.ReadHeadLine(HeadStr);


            if (string.IsNullOrEmpty(rowValues.Last()))
            {
                rowValues.RemoveAt(rowValues.Count - 1);
            }
            rowValues.ForEach((row) =>
            {
                List <DataColumn> cols = _rowReader.ReadLine(row, headNames);
                _rows.Add(cols);
            });
        }