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
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...
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...
c#小数精度c#中对于double型的小数如果想保留一定的精度,即小数点位数,可以在转换成字符串的时候,用参数限制;下面的程序演示了这个做法using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace double...
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#中并不难实现。它有一个命名空间: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
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
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
classProgram
{
//函数重载:是指同一个函数名可以对应着多个函数的实现,每个实现对应一个函数体,但是函数的参数类型不同..
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
//委托:它把引用存储为函数的类型;多用于事件及事件的处理;
//委托声明不带函数体;使用delegate关键字;需要知道一个返..