会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王大师123
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2019年11月9日
c# object var dynamic简单比较
摘要: 恢复内容开始 Object Student = new { Id = "1", Name = "张三" }; //Console.WriteLine(Student.Id); //Console.WriteLine(Student, Name); //C#强类型语言,编译时会确定类型,object
阅读全文
posted @ 2019-11-09 14:44 王大师123
阅读(357)
评论(0)
推荐(0)
2019年11月7日
c# 事件和委托
摘要: // 1 事件和委托的区别 // 2 简单的例子 class Program { static void Main(string[] args) { { Cat cat = new Cat(); cat.CatMiaoAction += new Dog().Wang; cat.CatMiaoActi
阅读全文
posted @ 2019-11-07 14:12 王大师123
阅读(161)
评论(0)
推荐(0)
2019年10月25日
c# 泛型委托--Func Action和异步多线程
摘要: // 1 泛型委托--Func Action // 2 Func Action 异步多线程 class Program { static void Main(string[] args) { MyDelegate myDelegate = new MyDelegate(); myDelegate.Show(); Console.ReadKey(); } } class MyDelegate { p
阅读全文
posted @ 2019-10-25 22:06 王大师123
阅读(1116)
评论(0)
推荐(0)
c#委托的声明、实例化和调用
摘要: // 1 委托的声明、实例化和调用 // 2 委托的意义:解耦 class Program { static void Main(string[] args) { MyDelegateEvent delegateEvent = new MyDelegateEvent(); delegateEvent.Show(); Student student = new Student(); student.
阅读全文
posted @ 2019-10-25 14:49 王大师123
阅读(1912)
评论(0)
推荐(0)
上一页
1
2
3
4
公告