示例#1
0
        public CSVValue GetValueToColumn(CSVRow row, string columnName)
        {
            if (!_header.Contains(columnName))
            {
                return(null);
            }
            int index = _header.GetIndexOf(columnName);

            return(row.GetValue(index));
        }
示例#2
0
        public void AddValueToColumn(CSVRow row, string columnName, string value)
        {
            int index = _header.GetIndexOf(columnName);

            row.Insert(index, new CSVValue(value));
        }
示例#3
0
 public void AddValue(CSVRow value)
 {
     _values.Add(value);
 }
示例#4
0
 public void SetHeader(CSVRow header)
 {
     _header = header;
 }