码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
entlib验证组件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Microsoft.Practices.EnterpriseLib...
分类:其他好文   时间:2015-05-18 01:03:18    阅读次数:155
C#实现栈和队列
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace S...
分类:Windows程序   时间:2015-05-17 15:15:32    阅读次数:244
C#实现单链表
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace S...
分类:Windows程序   时间:2015-05-17 09:15:46    阅读次数:147
c#的double型精度控制
c#小数精度c#中对于double型的小数如果想保留一定的精度,即小数点位数,可以在转换成字符串的时候,用参数限制;下面的程序演示了这个做法using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace double...
分类:Windows程序   时间:2015-05-16 20:38:02    阅读次数:783
委托实现音乐播放器 | 委托实现音乐播放器的缺点 | 事件实现音乐播放器
1,使用委托实现一个音乐播放器的功能呢。(模拟事件) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace 模拟事件 { /// /...
分类:其他好文   时间:2015-05-16 01:29:53    阅读次数:123
C#实现多线程
多线程在C#中并不难实现。它有一个命名空间:System.Threading,提供了多线程的支持。要开启一个新线程,需要以下的初始化:ThreadStart startDownload = new ThreadStart( DownLoad ); //线程起始设置:即每个线程都执行DownLoad(...
分类:编程语言   时间:2015-05-15 13:20:34    阅读次数:198
线程池
https://msdn.microsoft.com/zh-cn/library/system.threading.threadpool(v=vs.110).aspx最基础的class Program { static void Main(string[] args) ...
分类:编程语言   时间:2015-05-15 10:31:44    阅读次数:129
MSMQ小Demo
Demo基于http://www.cnblogs.com/zhili/p/MSMQ.htmlServer代码:using System.Messaging;using System.Text;using System.Threading.Tasks;namespace MSMQServer{ ...
分类:其他好文   时间:2015-05-14 23:40:12    阅读次数:185
14. C# --函数重载
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { classProgram { //函数重载:是指同一个函数名可以对应着多个函数的实现,每个实现对应一个函数体,但是函数的参数类型不同..
分类:Windows程序   时间:2015-05-14 20:50:35    阅读次数:179
15. C# -- 委托
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { //委托:它把引用存储为函数的类型;多用于事件及事件的处理; //委托声明不带函数体;使用delegate关键字;需要知道一个返..
分类:Windows程序   时间:2015-05-14 20:47:34    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!