General Rule for When to Implement IDisposable

后端 未结 6 1438
南旧
南旧 2020-11-29 12:00

EDIT: This question is a duplicate of What is the difference between managed and native resources when disposing? (.NET) and many others. Please answer the

6条回答
  •  猫巷女王i
    2020-11-29 12:13

    Implement IDisposable when you have a class what wraps an unmanaged resource or when your class has a field that implements IDisposable.

提交回复
热议问题