为什么ok
在 if 语句中使用对象时超出范围?以及如何处理对象ok
?
public class hello : IDisposable {
}
public class hi{
private void b()
{
using(hello ok = new hello());
hello no = new hello();
if( ok == no )
{
ok = no;
}
}
}