String To MemoryStream (C#)

This code snippet shows how you can convert a string in to a MemoryStream.

Snippet
[code lang=”csharp”]
MemoryStream mStream =
   new MemoryStream(ASCIIEncoding.Default.GetBytes(“Your string here”))
[/code]