using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace myclass{ class mc {...
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#中禁止程序多开 方法一、使用Mutex bool createdNew; //返回是否赋予了使用线程的互斥体初始所属权 System.Threading.Mutex instance = new System.Threading.Mutex(true, "MutexName", out ...
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
枚举型代码using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System;namespace dierke{ ...
委托的Invoke方法用来进行同步调用。同步调用也可以叫阻塞调用,它将阻塞当前线程,然后执行调用,调用完毕后再继续向下进行。同步调用的例子:using System;using System.Threading;public delegate int AddHandler(int a, int b)...
补充上面的点击菜单表信息: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
base关键字:调用父类的方法。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace PropertyClass...
只读属性使属性只读的方法是只提供get访问器,而不编写属性中的set部分。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;na...
封装using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace PropertyClass{ class Pro...