Created
July 21, 2016 19:31
-
-
Save aaronolds/dcf53e6df91b29f871c63ca0050f4d73 to your computer and use it in GitHub Desktop.
Serialize object from Immediate Window in Visual Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/18794264/visual-studio-how-to-serialize-object-from-debugger | |
// replace obj with the object you want to serialize | |
(new System.Xml.Serialization.XmlSerializer(obj.GetType())).Serialize(new System.IO.StreamWriter(@"c:\temp\text.xml"), obj) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment