I am working on some pretty complex code that is writing to a memorystream using an XmlTextwriter. Is there a way in Visual Studio debug to see the content of the memorystream/XmlTextwriter as I am stepping through code.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s easy to get it from the
MemoryStream:(That’s assuming you’ve told it to use UTF-8; use
Encoding.Unicodeor whatever’s appropriate if necessary.)It doesn’t make as much sense to ask the
XmlTextWriter– it’s just writing data, and probably doesn’t know or care what it’s already written. You may want to flush it, mind you.