Custom Dispose in designed form or user control

前端 未结 4 1630
说谎
说谎 2021-01-05 13:22

I\'ve created a custom WinForms UserControl and would like to override Dispose. However the code generated by the designed already contains a Dispose method. How can I add c

4条回答
  •  逝去的感伤
    2021-01-05 13:40

    Depending on what kind of resources you want to dispose of you also could use finalizer (destructor) to achieve that as well.

提交回复
热议问题