• Tutorials
  • Courses
  • Tracks

C# | IDisposable Interface | Q-2

Last Updated :
Discuss
Comments

What is the advantage of using the using statement with IDisposable objects?

It makes objects live longer

It automatically calls Dispose() even on exceptions

It disables GC

It stores objects on the stack

Tags:
Share your thoughts in the comments
Article Tags :