上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 69 下一页

2019年1月7日

摘要: 实现效果: 知识运用: Environment类的CurrentDirectory属性 //获取或设置当前工作目录的完全限定路径 public static string CurrentDirectory {get; set;} 实现代码: 阅读全文

posted @ 2019-01-07 23:00 努力成长静待花开 阅读(216) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: Application类的StartupPath属性 public static string StartupPath {get;} 实现代码: 阅读全文

posted @ 2019-01-07 22:49 努力成长静待花开 阅读(113) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: Path类的GetTempPath方法 public static string GetTempPath () 实现代码: 阅读全文

posted @ 2019-01-07 22:40 努力成长静待花开 阅读(233) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DirectoryInfo类的CreationTion属性 public DataTime CreationTime {get; set;} 实现代码: 阅读全文

posted @ 2019-01-07 22:26 努力成长静待花开 阅读(592) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: FileStream 和BinaryReader 及BinaryWriter类 实现代码: 阅读全文

posted @ 2019-01-07 20:05 努力成长静待花开 阅读(466) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: FileStream BinaryReader类 //用特定的编码将基元数据类型读作二进制值 其构造函数主要使用UTF8Encoding初始化类实例 public BinaryReader(Stream input) BinaryReader类的ReadBytes方法 //从 阅读全文

posted @ 2019-01-07 18:53 努力成长静待花开 阅读(1083) 评论(0) 推荐(0) 编辑

2019年1月6日

摘要: 实现效果: 知识运用: API函数SHGetFileInfo //获取包含在可执行文件或Dll中的图标数或图标资源 [DllImport("shell32.dll", EntryPoint = "SHGetFileInfo")] public static extern IntPtr SHGetFi 阅读全文

posted @ 2019-01-06 22:37 努力成长静待花开 阅读(1040) 评论(0) 推荐(0) 编辑

2019年1月5日

摘要: 实现效果: 知识运用: StreamReader类用来实现TextReader抽象类 使其以一种特定的编码从字节流中读取字符 其ReadToEnd方法用来从当前流的当前位置到末尾读取流 public override string ReadToEnd() //如果当前位置位于流的尾端 则返回空字符串 阅读全文

posted @ 2019-01-05 22:38 努力成长静待花开 阅读(197) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: File类的move方法 判断是否可以移动 实现代码: 阅读全文

posted @ 2019-01-05 22:03 努力成长静待花开 阅读(202) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: File类的Copy方法 public static void Copy (string sourceFileName, string destFileName) 实现代码: 阅读全文

posted @ 2019-01-05 14:16 努力成长静待花开 阅读(240) 评论(0) 推荐(0) 编辑

上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 69 下一页