Using an expensive object might not be an optimal design choice, but you can control the life cycle of the object using the ObjectCreating, ObjectCreated, and ObjectDisposing events.
英
美
- 使用高开销对象可能并不是最佳的设计选择,但是可以使用ObjectCreating、ObjectCreated和ObjectDisposing事件来控制该对象的生存期。
