摘要: Func<先写完参数,再写返回值> 1.异步委托的方式 : 这个里的是等待结束 Thread.Sleep(10),睡眠10毫秒 if里的判断是???不用等待,一直检查是否为真 2.等待句柄的方式:这个里的是等待过程 if里发判断是阻止线程运行时间.b为true表示等待完成,你的结果有没有完成我都要离 阅读全文
posted @ 2018-09-26 18:56 白纸菇凉 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.上边的代码:是主函数的,下边的是它调用的类: 阅读全文
posted @ 2018-09-26 16:29 白纸菇凉 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.主函数的代码,先是验证已经有的特性: 2.自己创建个特性,在主函数里面调用: 阅读全文
posted @ 2018-09-26 16:23 白纸菇凉 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 一、在vs里打开或者关闭进程 1.打开进程: 2.循环遍历所有进程,然后关闭qq: 3.打开进程:(unity) 打开文本文件: 打开计算器: 打开绘画: p处理,在Debug一次性打开 完整代码为i: 二、用txt写打开进程 就是点一个键就同时打开几个进程: &这个是延迟,打开多个的隔开符号,这里 阅读全文
posted @ 2018-09-26 16:18 白纸菇凉 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Runtime.Serialization; 6 using System.Runtime.Serialization.Formatters.Binary; 7 u... 阅读全文
posted @ 2018-09-19 18:54 白纸菇凉 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 n 阅读全文
posted @ 2018-09-19 18:54 白纸菇凉 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace _04媒体文件的读取 9 { 10 class Pr... 阅读全文
posted @ 2018-09-19 18:52 白纸菇凉 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1.先创建个文本文件 {}数组,[]对象 2加入这个json的应用 . 3. 阅读全文
posted @ 2018-09-19 18:15 白纸菇凉 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace _03FireStream文件夹流 9 { 10 c... 阅读全文
posted @ 2018-09-18 11:46 白纸菇凉 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1. File.AppendAllText(path1, "你还在,我不覆盖你,从你末尾处开始");// 不进行覆盖 2.unity里的要加上斜杠 3.相对路径绝对路径 3 4. //用using可以省略写 fileWrite.Close();// 关闭流。fileWrite.Dispose();/ 阅读全文
posted @ 2018-09-18 11:45 白纸菇凉 阅读(365) 评论(0) 推荐(0) 编辑