程序猿

道,可道,非常道;名,可名,非常名;

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

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 minxiangyang 阅读(129) 评论(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 minxiangyang 阅读(142) 评论(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 minxiangyang 阅读(152) 评论(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 minxiangyang 阅读(132) 评论(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 minxiangyang 阅读(124) 评论(0) 推荐(0)