Пример #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;
 }