摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01匿名方法 { class Program 阅读全文
posted @ 2019-02-06 15:31
豆皮没有豆
阅读(100)
评论(0)
推荐(0)
摘要:
委托 委托是方法的抽象,它存储的就是一系列具有相同签名和返回类型的方法的地址。调用委托的时候,委托包含的所有方法将被执行。 委托是类型,就好像类是类型一样。与类一样,委托类型必须在被用来创建变量以及类型对象之前声明。 委托的声明原型是 delegate <函数返回类型> <委托名> (<函数参数>) 阅读全文
posted @ 2019-02-06 15:26
豆皮没有豆
阅读(101)
评论(0)
推荐(0)
摘要:
接口定义了属性、方法和事件,这些都是接口的成员。接口只包含了成员的声明。成员的定义是派生类的责任。接口提供了派生类应遵循的标准结构。 接口使得实现接口的类或结构在形式上保持一致。 抽象类在某种程度上与接口类似,但是,它们大多只是用在当只有少数方法由基类声明由派生类实现时。 定义接口:(接口类) 接口 阅读全文
posted @ 2019-02-06 12:55
豆皮没有豆
阅读(101)
评论(0)
推荐(0)
摘要:
设计页面: 源码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; usi 阅读全文
posted @ 2019-02-06 12:34
豆皮没有豆
阅读(331)
评论(0)
推荐(0)
摘要:
进程 using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; names 阅读全文
posted @ 2019-02-06 12:07
豆皮没有豆
阅读(95)
评论(0)
推荐(0)
浙公网安备 33010602011771号