Question:You are creating a class that uses unmanaged resources.
The class maintains references to managed resources on other objects.
You need to ensure that users of the class can explicitly release resources when the class instance is no longer needed.
Which actions should you perform in sequence?
To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
A Define the class so that it implements the IDisposable interface<br /><br />Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />
B Define the class so that it implements the IDisposable interface<br /><br />Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />Define the class so that it inherits from the WeakReference Class<br /><br />
C Define the class so that it implements the IDisposable interface<br /><br />Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />Create a class destructor that call the Dispose() method of the unmanaged resource.
D Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />