You can view the content MemoryStreamwithout changing it, if you can make some assumptions:
- Your flow really is
MemoryStream - Your stream contains only string data
- You know the encoding of this string, for example. UTF8 or ASCII
If you can make these assumptions, you can use the following code in the Clock window:
Encoding.UTF8.GetString((byte[])stream.GetType().GetMethod("InternalGetBuffer", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(stream, null))
:
, , .