让我们举个例子:
using (var someObject = new SomeObject())
{
var someOtherObject = new SomeOtherObject();
someOtherObject.someMethod();
}
SomeOtherObject
还实现了 IDisposable。当 SomeObject 被处置时, SomeOtherObject 也会被处置吗?SomeOtherObject 会发生什么?(SomeObject 的 Dispose 方法中没有实现 SomeOtherObject 的处理)