2012年9月25日
摘要: C#线程的使用简单示例代码如下: using System;using System.Threading; class Program{ static void Main(string[] args) { Thread.CurrentThread.Name = "主线程"; Thread thread1 = new Thread(new ThreadStar... 阅读全文
posted @ 2012-09-25 17:25 163com 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 代码如下,谢谢阅读,控制台应用程序: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Xml.Linq; namespace LinqQueryDemo{ class Student { public... 阅读全文
posted @ 2012-09-25 17:21 163com 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 示例代码如下,控制台应用程序: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace LambdaExpressionDemo{ delegate void AddHandler(int a, int b); class Program { ... 阅读全文
posted @ 2012-09-25 17:17 163com 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 示例代码如下,控制台应用程序: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace AnonymousTypeDemo{ class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2012-09-25 17:14 163com 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 示例代码如下: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace HiddenClassLocalVariablesDemo{ class Program { static void Main(string[] args) ... 阅读全文
posted @ 2012-09-25 17:11 163com 阅读(144) 评论(0) 推荐(0) 编辑