摘要:
//1,定义委托 private delegate void MyDelegate(string name); // 2,这是我们欲传递的方法,它与MyDelegate具有相同的参数和返回值类型 public static void MyDelegateMethod(string name) { ... 阅读全文
posted @ 2015-03-23 22:17
914556495
阅读(130)
评论(0)
推荐(0)
摘要:
//1,定义委托 private delegate void MyDelegate(string name); // 2,这是我们欲传递的方法,它与MyDelegate具有相同的参数和返回值类型 public static void MyDelegateMethod(string name) { ... 阅读全文
posted @ 2015-03-23 22:05
914556495
阅读(110)
评论(0)
推荐(0)
摘要:
#region 隐式类型局部变量 //var age = 26; //var username = "tom"; //var userlist = new[] { "a","b","c"}; //foreach(var user in userlist) //{ // Console.WriteL... 阅读全文
posted @ 2015-03-23 21:51
914556495
阅读(105)
评论(0)
推荐(0)
摘要:
//导入Windows类库,可以获得进程ID [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern int GetWindowsThreadProcesId( IntPtr bwnd,out int ID );... 阅读全文
posted @ 2015-03-23 21:39
914556495
阅读(247)
评论(0)
推荐(0)
摘要:
/// /// 从Excel 导入学生 /// /// /// private void btnInport_Click(object sender, EventArgs e) { try { //取得用户选择的Excel文件的方法 string strFileName = GetUser... 阅读全文
posted @ 2015-03-23 20:43
914556495
阅读(323)
评论(0)
推荐(0)

浙公网安备 33010602011771号