C#中 using 小括号中创建的对象为什么在大括号中不能调用
using (FileStream fs = new FileStream(@"D:.txt", FileMode.OpenOrCreate, FileAccess.Read)) ;
{
byte[] buffer = new byte[1024 * 1024 * 5];
int r = fs.Read(buffer, 0, buffer.Length);
}
大括号中fs.Read一直报错,不知道什么原因,求指导
using 后面多个;