... implemented the Dispose method using ( anObjectWithResources ) { // Use object and its resources } 188 Chapter 9: Resource Disposal, Input/Output, and Threads ■ In fact, the using statement is shorter ... managed and unmanaged resources without duplicate effort public class ClassWithResources : IDisposable { ClassWithResources() { // Initialize resources disposed = false; } ˜ClassWithResources() ... 186 Chapter 9: Resource Disposal, Input/Output, and Threads ■ by the NET Framework Responsibility for the disposal of unmanaged resources, therefore, rests with the object itself and is encapsulated...