C#中如何将字符串转换成流,同时如何将流转换成字符串?

MemoryStream   fileStream=new   MemoryStream();
StreamWriter   outerstr=   new   StreamWriter(fileStream);
string   str= "hehehehe ";
outerstr.Write(str);
outerstr.Flush();

你可能感兴趣的:(c#,string)