R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `IDisposable` interface in .NET?

  • (A) To manage memory allocation
  • (B) To close network connections
  • (C) To release unmanaged resources
  • (D) To finalize objects

Explanation by: Ram Sharma
`IDisposable` is implemented to release unmanaged resources like file handles, database connections, etc.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.