The difference between a destructor and a finalizer?

后端 未结 4 2169
迷失自我
迷失自我 2020-12-08 19:09

Please Note: This question is about the difference in terminology between the words \"destructor\" and \"finalizer\" and their correct usage. I have merely provided

4条回答
  •  余生分开走
    2020-12-08 19:48

    If we abide to the "deterministic" definition of destructors, then I would say that in .NET objects have no destructors unless explicitly implemented by using the IDisposable interface.

提交回复
热议问题