![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
小哥、
这个作者很懒,什么都没留下…
展开
-
C#委托实例
//委托是一个特殊的类,它定义了方法的类型,可以将方法当作另一个方法的参数来进行传递,这种方法动态地赋给参数的做法,可以避免在程序中大量使用if-else(Switch)语句,同时也使得程序具有更好的扩展性。委托机制尤其适合在使用事件处理的编程模式或者类的静态方法,以及在需要封装和灵活的组织方法的场合//实例1 using System; using System.Collections.Gene原创 2013-05-16 13:05:50 · 874 阅读 · 0 评论 -
C#网络编程之多线程(2)
1.一个正在运行的应用程序在操作系统中被视为一个进程,进程可以包括多个线程。线程是操作系统分配处理器时间的基本单位 2.应用程序域是指进行错误隔离和安全隔离,在CLR中运行,每个程序域都是单个线程启动,但该程序域中的代码可以创建附加应用程序域和附加线程 3.多线程的优点在于一个线程阻塞的时候,CUP可以运行其他的线程而不需要等待,这样大大的提高了程序的执行效率。而缺点在于线程需要占用内存,线程原创 2013-05-17 00:03:01 · 1150 阅读 · 0 评论 -
C#定义定义数组的几种形式
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace linq { class Program { static void Main(string[] args) { }原创 2013-05-13 10:36:57 · 1973 阅读 · 0 评论 -
linq简单实例
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace linq { class Program { static void Main(string[] args) {原创 2013-05-13 10:51:15 · 696 阅读 · 0 评论