Which interface should you implement?

You develop a class named MyClass. MyClass has a method that uses a COM object.
You need to ensure that when MyClass is instantiated by using the using keyword, the COM object is released at the end of the using scope
Which interface should you implement?
A. ISerializable
B. IDisposable
C. ICIoneable
D. IFormattable

microsoft-exams

One thought on “Which interface should you implement?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.