Dispose question

后端 未结 7 1992
北荒
北荒 2021-02-14 02:51

I have a number of classes which have private member variables that implement IDisposable (timers, brushes, etc). Do I need to do anything to ensure these variables are cleaned

相关标签:
7条回答
  • 2021-02-14 03:23

    If your class has member variables that implement IDisposable, then your class should implement it as well. You clean up what you own.

    0 讨论(0)
提交回复
热议问题