Posted on: 12/5/2013 4:48:55 AM | Views : 754

Hi:
I have a problem about memorystream.flush. In Msdn, the articles says it is redundant,
and the following is a codesnippet I written.
byte[] bytes = new byte[1024]; ... MemoryStream ms = new MemoryStream(); ms.Write(bytes, 0, bytes.Length); ms.Flush(); I try to make sure the ms can be saved as another memory block of bytes.
Is there any difference if I take off the statement of ms.flush. Because I can not make sure what is the usage of
memorystream.flush.  Any instructions is highly appreciated, thanks. 
 

Go to the complete details ...