[置顶] 01-资料管理器(Directory/DirectoryInfo操作文件夹类)

摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object... 阅读全文

posted @ 2015-01-29 13:50 zy` 阅读(224) 评论(0) 推荐(0) 编辑

2015年7月8日

11-C#反射机制

摘要: C#反射机制转自:http://blog.csdn.net/educast/article/details/2894892反射的用途: (1)使用Assembly定义和加载程序集,加载在程序集清单中列出模块,以及从此程序集中查找类型并创建该类型的实例。 (2)使用Module了解包含模块的程序集以及... 阅读全文

posted @ 2015-07-08 09:44 zy` 阅读(90) 评论(0) 推荐(0) 编辑

2015年3月13日

02-使用委托与多线程实现窗体间传值

摘要: 1、主窗体代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syste... 阅读全文

posted @ 2015-03-13 17:24 zy` 阅读(162) 评论(0) 推荐(0) 编辑

01-多线程及异步委托

摘要: 一、多线程:1、概念:线程:是Windows任务调度的最小单位。线程是程序中的一个执行流,每个线程都有自己的专有寄存器(栈指针、程序计数器等),但代码区是共享的,即不同的线程可以执行同样的函数。多线程:是指程序中包含多个执行流,即在一个程序中可以同时运行多个不同的线程来执行不同的任务(代码),也就是... 阅读全文

posted @ 2015-03-13 16:38 zy` 阅读(412) 评论(0) 推荐(1) 编辑

2015年3月11日

10-利用com组件读取office

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Text.RegularExpressions;using iTextShar... 阅读全文

posted @ 2015-03-11 10:47 zy` 阅读(664) 评论(0) 推荐(0) 编辑

2015年3月5日

09-删除目录及文件操作

摘要: 文件操作基础知识:Directory//操作目录(文件夹),静态类。DirectoryInfo//文件夹的一个“类”,实例类。用来描述一个文件夹对象(获取指定目录下的所有目录时返回一个DirectoryInfo数组。返回文件夹数组)FileInfo//文件类,实例类。用来描述一个文件对象。获取指定目... 阅读全文

posted @ 2015-03-05 11:08 zy` 阅读(262) 评论(0) 推荐(0) 编辑

08-在字符串中统计子串出现的次数

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namespace _05在字符串中统计子串出现的次数{ ... 阅读全文

posted @ 2015-03-05 10:14 zy` 阅读(437) 评论(0) 推荐(0) 编辑

2015年2月27日

07-控制台程序实现关闭进程

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Diagnostics;namespace KillProces... 阅读全文

posted @ 2015-02-27 14:28 zy` 阅读(554) 评论(0) 推荐(0) 编辑

2015年2月13日

06-自定义Attribute标记案例

摘要: 自定义Attribute:1)Attribute都从System. Attribute类继承,类名一般以Attribute结尾2) 标记类的用途—AttributeUsage标记(标记的标记):AttributeTargets:可以添加到哪些成员上。 AllowMultiple:是否允许在一个成员上... 阅读全文

posted @ 2015-02-13 16:00 zy` 阅读(849) 评论(2) 推荐(0) 编辑

05-XML遍历递归显示到TreeView上(XDocument类)

摘要: 1、XML文件(x1.xml): 张三 18 Male 李四 19 Female 杨廉壬 20 ... 阅读全文

posted @ 2015-02-13 14:19 zy` 阅读(348) 评论(0) 推荐(0) 编辑

2015年1月29日

03-StreamReader和StreamWriter的案例

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace _06职工工资文件翻倍练习{ class Program { ... 阅读全文

posted @ 2015-01-29 14:12 zy` 阅读(198) 评论(0) 推荐(0) 编辑

导航