摘要:
委托:也称为代理,事件也是一种委托;定义在类的最外面 1、定义委托关键字:delegate函数签名:签名和函数保持一致定义委托的时候要根据函数来定义public delegate int First(int a,int b);指向的方法的返回类型,需要参数必须一致! 2、定义委托变量,指向方法 委托 阅读全文
posted @ 2016-08-12 13:50
绯色梧桐绯色月
阅读(240)
评论(1)
推荐(1)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 单列模式 { //单列模式 //控制一个类只能实例化一个对象 //class Test//普通类 //{ ... 阅读全文
posted @ 2016-08-12 11:28
绯色梧桐绯色月
阅读(215)
评论(1)
推荐(0)
浙公网安备 33010602011771号