摘要: C# typeof() 和 GetType()区是什么? 1、typeof(x)中的x,必须是具体的类名、类型名称等,不可以是变量名称。 2、GetType()方法继承自Object,所以C#中任何对象都具有GetType()方法,它的作用和typeof()相同,返回Type类型的当前对象的类型。 阅读全文
posted @ 2020-07-27 23:54 icon_sunny 阅读(507) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threadi 阅读全文
posted @ 2020-07-27 23:46 icon_sunny 阅读(723) 评论(0) 推荐(0) 编辑
摘要: public delegate void BugTicketEventHandler(); delegate 是关键词,【注:EventHandler是一个声明委托的微软C#的命名标准,我的习惯是标准就要第一时间说,也就这个命名习惯要第一时间养成】 区别知道了吧,在现实生活中,委托只是个命令,做事情 阅读全文
posted @ 2020-07-27 23:44 icon_sunny 阅读(201) 评论(0) 推荐(0) 编辑