Question: Which statement describes a Dispose method?
- It defines an execution environment for program code and manages the CLR
- It belongs to the IDisposable interface and is used to free resources, such as network connection and files.
- It is partially method-compiled code library for use in deployment, versioning, and security.
- It is used for encapsulation of collections tied to functions of a class and object.
Answer: The correct answer of the above question is Option B:It belongs to the IDisposable interface and is used to free resources, such as network connection and files.