public CSVValue GetValueToColumn(CSVRow row, string columnName) { if (!_header.Contains(columnName)) { return(null); } int index = _header.GetIndexOf(columnName); return(row.GetValue(index)); }
public void AddValueToColumn(CSVRow row, string columnName, string value) { int index = _header.GetIndexOf(columnName); row.Insert(index, new CSVValue(value)); }
public void AddValue(CSVRow value) { _values.Add(value); }
public void SetHeader(CSVRow header) { _header = header; }