Serialization of paid cart DTO v2 to JSON text. · GitHub
source link: https://gist.github.com/einarwh/0bd17a2c7c824cf2a1a072c3dd088a2d
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Instantly share code, notes, and snippets.
var paidCartDto2 = new PaidCart { PaidItems = new Item[] { new Item { Id = "1bcd", Title = "gizmo" }, new Item { Id = "3cdf", Title = "widget", Description = "A very useful item" } }, Payment = new Money { Mount = 123.5, Currency = "USD" }, Timestamp = "2020-04-11T10:11:33.514+02:00" };
var paidCartDto2JsonText = JsonConvert.SerializeObject(paidCartDto2);
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK