title: c# MemoryStream vs Byte Array
body: <p>I have a function, which generates and returns a MemoryStream. After generation the size of the MemoryStream is fixed, I dont need to write to it anymore only output is required. Write to MailAttachment or write to database for example. </p>
  
  <p>What is the best way to hand the object around? MemoryStream or Byte Array? If I use MemoryStream I have to reset the position after read.</p>