摘要: 事件本质:类型安全的多播委托 1:还是以音乐播放器为例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System 阅读全文
posted @ 2017-04-21 16:50 逍遥小天狼 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1:先用委托演示 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; n 阅读全文
posted @ 2017-04-20 14:49 逍遥小天狼 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 事件本质:多播委托;多播委托本质:一个委托指向多个函数 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namesp 阅读全文
posted @ 2017-04-19 16:57 逍遥小天狼 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1.1 找出int数组中的最大值,我们可能会这样写 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespac 阅读全文
posted @ 2017-04-19 11:13 逍遥小天狼 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 委托:将函数作为参数传递 例如:操作将一个字符串数组转化为一下大写,小写,转变和打印,普通方法这么写 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System. 阅读全文
posted @ 2017-04-18 18:04 逍遥小天狼 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 说明:把xml中的数据放入到数据源list中然后显示到gridview中,参考上一节内容 1 UI页面 2创建student类 public class Student { public int ID { get; set; } public string Name { get; set; } pu 阅读全文
posted @ 2017-04-18 14:30 逍遥小天狼 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 说明:通过xml完成用户登录信息的判断 1 搭建UI页面 2 新建一个student类,类中包含以上属性 public class Student { public int ID { get; set; } public string Name { get; set; } public int Ag 阅读全文
posted @ 2017-04-18 11:58 逍遥小天狼 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1 增加(存在则添加,不存在则新建) //对xml的操作-- XmlDocument doc = new XmlDocument(); if (File.Exists("Person.xml")) { //如果存在,加载文档 doc.Load("Person.xml"); //获取根节点 XmlEl 阅读全文
posted @ 2017-04-17 20:50 逍遥小天狼 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 说明:可扩展标记语言 eXtensible Markup Language--区分大小写 涉及到的知识点:DOM 文档对象模型 文本文件存储数据缺点:1,不易读取.2,易乱码 1 通过代码创建一个xml文档 using System; using System.Collections.Generic 阅读全文
posted @ 2017-04-17 13:57 逍遥小天狼 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 说明:现在我想查看博客园中,我都写了哪些随笔,都是什么时间写的.做一个数据的采集分析 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; usi 阅读全文
posted @ 2017-04-17 13:05 逍遥小天狼 阅读(202) 评论(0) 推荐(0) 编辑