Any one tell me the exact difference between MemoryStream Read() method and GetBuffer(). I want an exact behavoiur of these two methods.
Read() will copy bytes into YOUR buffer, GetBuffer() will give you access to OWN buffer that MemoryStream use for itself.
I don't think you can keep GetBuffer()-given reference too long, because when stream write something it can reallocate buffer.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?