码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
C# No.3
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace myclass{ class mc {...
分类:Windows程序   时间:2015-03-30 20:46:33    阅读次数:149
An interesting piece of code
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class...
分类:其他好文   时间:2015-03-30 20:43:58    阅读次数:119
C#中禁止程序多开
原文: C#中禁止程序多开 方法一、使用Mutex bool createdNew; //返回是否赋予了使用线程的互斥体初始所属权 System.Threading.Mutex instance = new System.Threading.Mutex(true, "MutexName", out ...
分类:Windows程序   时间:2015-03-30 20:28:34    阅读次数:203
类的非常简单的应用
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;public class Time{ private int Ye...
分类:其他好文   时间:2015-03-29 23:39:34    阅读次数:184
c# 第二课
枚举型代码using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System;namespace dierke{ ...
分类:Windows程序   时间:2015-03-29 20:54:12    阅读次数:149
C# 委托的同步调用和异步调用
委托的Invoke方法用来进行同步调用。同步调用也可以叫阻塞调用,它将阻塞当前线程,然后执行调用,调用完毕后再继续向下进行。同步调用的例子:using System;using System.Threading;public delegate int AddHandler(int a, int b)...
分类:Windows程序   时间:2015-03-28 14:12:43    阅读次数:123
MVC+Bootstrap 企业通用框架搭建--左侧导航菜单的实现--导航菜单的增删改查(3)
补充上面的点击菜单表信息:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace SqlServer.Entity...
分类:Web程序   时间:2015-03-21 22:52:57    阅读次数:357
C#继承
base关键字:调用父类的方法。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace PropertyClass...
分类:Windows程序   时间:2015-03-21 16:58:23    阅读次数:160
C#属性
只读属性使属性只读的方法是只提供get访问器,而不编写属性中的set部分。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;na...
分类:Windows程序   时间:2015-03-21 16:58:16    阅读次数:186
C#面向对象思想
封装using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace PropertyClass{ class Pro...
分类:Windows程序   时间:2015-03-21 16:53:40    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!