Item 30: Prefer Overrides to Event Handlers(Effective C#)
摘要:
When you have one function that handles one event in a derived class, theoverride is the better approach. It is easier to maintain, more likely to becorrect over time, and more efficient. Reserve the event handlers for otheruses. Prefer overriding the base class implementation to attaching an eventh 阅读全文
posted @ 2011-02-19 13:06 Ray Z 阅读(199) 评论(0) 推荐(0) 编辑