@manhng

Welcome to my blog!

Debugger

March 4, 2020 14:12

Debugger (edit)

https://marketplace.visualstudio.com/items?itemName=OmarElabd.ObjectExporter

https://marketplace.visualstudio.com/items?itemName=CodeValueLtd.OzCode

http://www.omarelabd.net/exporting-objects-from-the-visual-studio-debugger/

(new System.Xml.Serialization.XmlSerializer(obj.GetType())).Serialize(new System.IO.StreamWriter(@"D:\Temp\File1.xml"), obj)

System.IO.File.WriteAllText(@"
D:\Temp\File1.json", Newtonsoft.Json.JsonConvert.SerializeObject(obj))

Newtonsoft.Json.JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.None);

Categories

Recent posts