using (MemoryStream ms
= new MemoryStream())
{
using (StreamWriter writer
= new StreamWriter(ms))
{
int count
= 1024
* 1024
* 40;
char[] str
= new
char[count];
while (count--
>
0)
str[count]
= '*';
writer.Write(str);
writer.Flush();
}
}
使用这个代码操作完后,为什么内存不减呢?这段代码有什么问题?