阅读背景:

通过C#事件实现模板方法模式是一个好习惯吗?

来源:互联网 

I am now trying to understand some code and I have found a pattern, which seem a bit strange to me. There is a user's control class with 'EditorOpen' event. At first, I thought this name is incorrect, because it does not end with '-ing' or '-ed', as MSDN suggests. However, later I have found out, that this event does not INFORM about something happening, but it is rather some kind of REQUEST to do the actual operation. This is the client code, which is expected to perform the "opening of the editor"!I am now trying to understand some code and I h




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: