using System.Linq; using ServiceStack; using ServiceStack.Text; using System.Collections.Generic; using ServiceStack.Text.Common; public class POCO { public string Prop1 { get; set; } public string Prop2 { get; set; } public string Prop3 { get; set; } public string Prop4 { get; set; } public string Prop5 { get; set; } } var srcList = new List() { new POCO() { Prop1 = "1", Prop2 = JsWriter.ListStartChar + "2", Prop3 = JsWriter.MapStartChar + "3", Prop4 = "4", Prop5 = "5" } }; var csv = CsvSerializer.SerializeToCsv(srcList); var desList = csv.FromCsv>(); var src = srcList[0]; var des = desList[0]; $"Compare Prop5: src={src.Prop5}, des={des.Prop5}".Print(); if (src.Prop5 != des.Prop5) "Deserialization Test Failed!".Print(); // Save a copy of this *public* Gist by clicking the "Save As" below