会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nbu_djw
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2015年6月28日
Mutex
摘要: private static Mutex m = new Mutex(); static bool p = true; public static void A() { while (true) { ...
阅读全文
posted @ 2015-06-28 14:13 nbu_djw
阅读(137)
评论(0)
推荐(0)
2015年6月26日
委托和匿名委托
摘要: public delegate void del(); del d = Func; d.Invoke(); public static void Func() { Console.WriteLine("i am del...
阅读全文
posted @ 2015-06-26 21:08 nbu_djw
阅读(163)
评论(0)
推荐(0)
线程通信
摘要: static object locker = new object(); public void A() { while (true) { lock (locker) ...
阅读全文
posted @ 2015-06-26 20:10 nbu_djw
阅读(114)
评论(0)
推荐(0)
同步锁
摘要: class Program { static void Main(string[] args) { //控制台默认输出行数是300,可以设置 Console.BufferHeight = 1000; ...
阅读全文
posted @ 2015-06-26 13:22 nbu_djw
阅读(257)
评论(0)
推荐(0)
2015年6月25日
[ValidateInput(false)]
摘要: [ValidateInput(false)]或
阅读全文
posted @ 2015-06-25 21:49 nbu_djw
阅读(3013)
评论(0)
推荐(0)
2015年5月21日
Udp通信【转】
摘要: static void Main(string[] args) { Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); ...
阅读全文
posted @ 2015-05-21 13:49 nbu_djw
阅读(303)
评论(0)
推荐(0)
2015年5月20日
Tcp通信与多线程【转】
摘要: 服务器端Socket socketWatch = null; Thread threadWatch = null; Dictionary dicSocket = new Dictionary(); Dictionary dicThread = new Dic...
阅读全文
posted @ 2015-05-20 09:41 nbu_djw
阅读(281)
评论(0)
推荐(0)
2015年5月15日
tcp通信与sql server【转】
摘要: public static void WriteStringToFile(string FilePath, string Contend) { FileInfo fi = new FileInfo(FilePath); if (!fi.Di...
阅读全文
posted @ 2015-05-15 20:18 nbu_djw
阅读(359)
评论(0)
推荐(0)
C#文件操作
摘要: public static void Compress(string sourceFile, string destFile) { FileStream fs = File.OpenRead(sourceFile); byte[] bs = ...
阅读全文
posted @ 2015-05-15 11:13 nbu_djw
阅读(121)
评论(0)
推荐(0)
2014年10月24日
模糊查询自增主键
摘要: id是int类型自增主键,如果要模糊查询要用触发器,自动生成一个字符类型, IDENT_CURRENT或者当前表的种子用存储过程修改种子成为我们想要的自动编号
阅读全文
posted @ 2014-10-24 14:20 nbu_djw
阅读(205)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告