2019年12月9日

摘要: 泛型方法 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Generic { class Pro 阅读全文

posted @ 2019-12-09 14:15 冰糖Luck1996 阅读(237) 评论(0) 推荐(0) 编辑

2019年12月8日

摘要: 1,创建Models 2,创建业务接口IBusinessInterface 添加Models引用 3,创建业务实现BusinessClass1与BusinessClass2(注意:两组中的实现类要同名,但命名空间不可以相同) 添加Models和IBusinessInterface引用 4,创建工厂F 阅读全文

posted @ 2019-12-08 20:01 冰糖Luck1996 阅读(112) 评论(0) 推荐(0) 编辑

摘要: 新建一个控制台应用程序 Bike中的代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 反射 阅读全文

posted @ 2019-12-08 13:50 冰糖Luck1996 阅读(114) 评论(0) 推荐(0) 编辑

2019年12月7日

摘要: 实现功能:通过更改配置文件实现不同的功能 1,创建以下内容 2,ICar接口代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading. 阅读全文

posted @ 2019-12-07 21:06 冰糖Luck1996 阅读(152) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 1,创建两个窗体 FormMain using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Sy 阅读全文

posted @ 2019-12-07 20:13 冰糖Luck1996 阅读(109) 评论(0) 推荐(0) 编辑

2019年12月4日

摘要: 实现效果: 1,添加一个Panel 2,建三个窗体 FormMain代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Draw 阅读全文

posted @ 2019-12-04 22:30 冰糖Luck1996 阅读(143) 评论(0) 推荐(0) 编辑

摘要: 1,共有两个窗体 主窗体代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq 阅读全文

posted @ 2019-12-04 21:43 冰糖Luck1996 阅读(159) 评论(0) 推荐(0) 编辑

摘要: 泛型委托 public delegate T1 Method<T1, T2>(T1 a); static void Main(string[] args) { Method<string, int> method = (string a) => { return a; }; Console.Writ 阅读全文

posted @ 2019-12-04 16:47 冰糖Luck1996 阅读(84) 评论(0) 推荐(0) 编辑

摘要: Lambda表达式(Param)=>expr 无参数无返回 public delegate void lambda1(); public void Text1() { lambda1 lambda1 = () => Console.WriteLine("lambda无参数无返回值"); lambda 阅读全文

posted @ 2019-12-04 16:21 冰糖Luck1996 阅读(442) 评论(0) 推荐(0) 编辑

摘要: 一,无参数无返回 namespace 委托 { class Program { public delegate void Method(); static void Main(string[] args) { Method method = delegate () { Console.WriteLi 阅读全文

posted @ 2019-12-04 16:17 冰糖Luck1996 阅读(97) 评论(0) 推荐(0) 编辑