System.IO.MemoryStream

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

Dim stream As System.IO.MemoryStream

in step-through debug mode , i would like to examine the contents of the
stream ... such as with QuickWatch (QuickWatch doesn't provide the actual
content) ...

does anyone have any good ideas ?
 
Use a streamreader...

or you can look at the base stream and convert the bytes to unicode or
whatever you wish.
 
do you mean ....

Dim memStream As System.IO.MemoryStream

Dim reader As System.IO.Reader

Dim s As String

' initialize MemoryStream

reader = New StreamReader(memStream)

s = reader.ReadToEnd()

reader.Close()
 
Yeah.


John A Grandy said:
do you mean ....

Dim memStream As System.IO.MemoryStream

Dim reader As System.IO.Reader

Dim s As String

' initialize MemoryStream

reader = New StreamReader(memStream)

s = reader.ReadToEnd()

reader.Close()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top