• Tutorials
  • Courses
  • Tracks

C# | IDisposable Interface | Q-3

Last Updated :
Discuss
Comments

Which statement is correct regarding Destructor (~ClassName) vs IDisposable.Dispose()?

Destructor is deterministic, Dispose is non-deterministic

Destructor is called by programmer, Dispose by GC

Destructor is non-deterministic, Dispose is deterministic

Both run at exact same time

Tags:
Share your thoughts in the comments
Article Tags :