Class CsvInputKit
Utility class for parsing and processing CSV input data.
public class CsvInputKit
- Inheritance
-
CsvInputKit
- Inherited Members
- Extension Methods
Constructors
CsvInputKit()
Initializes a new instance of the CsvInputKit class.
public CsvInputKit()
Properties
TitleLine
Gets or sets the CSV header line as a comma-separated string.
public string TitleLine { get; set; }
Property Value
TitleList
Gets or sets the list of column titles from the CSV header.
public List<string> TitleList { get; set; }
Property Value
Methods
GetCsvDictionary(string)
Creates a dictionary from a CSV row, mapping column titles to their values. The row should not be the header line, and TitleLine or TitleList must be set first.
public Dictionary<string, string> GetCsvDictionary(string row)
Parameters
row
stringThe CSV row to process
Returns
- Dictionary<string, string>
A dictionary mapping column titles to their values