Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6572977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:04:25+00:00 2026-05-25T15:04:25+00:00

I am working on some pretty complex code that is writing to a memorystream

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:04:26+00:00Added an answer on May 25, 2026 at 3:04 pm

    It’s easy to get it from the MemoryStream:

    Encoding.UTF8.GetString(stream.ToArray())
    

    (That’s assuming you’ve told it to use UTF-8; use Encoding.Unicode or 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm still working my way through some pretty basic Actionscript programming (in Flex), and
I have been working on some legacy C++ code that uses variable length structures
I'm working on some code that uses the System.Diagnostics.Trace class and I'm wondering how
I'm in the process of working on programming project that involves some pretty extensive
I have some pretty basic HTML/CSS that isn't working as I expect. Basically I
I have been working on a site that makes some pretty big use of
I've been working on implementing a pretty complex system in JavaScript that needs to
I'm a OCaml newbie working with some pretty complex (at least for me) OCaml
I'm working on a pretty complex DSL that I want to compile down into
I'm working on some legacy code and I ran into something that I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.