C#学习第十 一天 022 事件最后一章
事件的声明:
首先委托是一种类:public delegate
假如你的委托声明是为了一个事件声明的那么命名可以为 xxxxEventHandler是
首先委托是一种类:public delegate
假如你的委托声明是为了一个事件声明的那么命名可以为 xxxxEventHandler是

sender as customer 是如果sender的类型是customer 就赋值给custmoer 不是的话就给null

事件触发方法访问级别一般是protected
事件用动词
为什么事件基于委托:


浙公网安备 33010602011771号