CsvReader csvReader = new CsvReader(); //Trial Mode //CsvReader csvReader = new CsvReader("place user name here", "place license key here"); //License Mode csvReader.RemoveColumnNameSpaces = true; string csvString = "First Name,Last Name\r\nJohn,Smith"; List<Dictionary<string, string>> result = csvReader.CsvStringToDictionary(csvString); //The column name will be FirstName since the spaces are removed Console.WriteLine(result[0]["FirstName"]);
Dim csvReader As New CsvReader() 'Trial Mode 'CsvReader csvReader = new CsvReader("place user name here", "place license key here"); //License Mode csvReader.RemoveColumnNameSpaces = True Dim csvString As String = "First Name,Last Name" & vbCrLf & "John,Smith" Dim result As List(Of Dictionary(Of String, String)) = csvReader.CsvStringToDictionary(csvString) 'The column name will be FirstName since the spaces are removed Console.WriteLine(result(0)("FirstName"))
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2