委托一

委托一 Delegate 委托,用于传递方法的引用(A delegate type represents references to methods with a particular parameter list and return type)。        用常用的观察者模式来说明一下事件委托过程。 第一步:创建一个委托TestDelegate,包含两个参数,无返回值。 /// <summ
相关文章
相关标签/搜索