public void Can_Serailize_KVP_array() { var kvpArray = new[] { new KeyValuePair <string, string>("Key", "Foo"), new KeyValuePair <string, string>("Value", "Bar"), }; var dto = new PocoWithKvp { Values = kvpArray }; Console.WriteLine(dto.ToJson()); Serialize(dto, includeXml: false); }
public void Can_Serailize_KVP_array() { var kvpArray = new[] { new KeyValuePair<string, string>("Key", "Foo"), new KeyValuePair<string, string>("Value", "Bar"), }; var dto = new PocoWithKvp { Values = kvpArray }; Console.WriteLine(dto.ToJson()); Serialize(dto, includeXml: false); }