随笔分类 -  C#

摘要:此文章为转载:http://www.bubuko.com/infodetail-699735.html参考链接:http://q.cnblogs.com/q/34480/ dudu有回复,其中一个链接http://stackoverflow.com/questions/7424501/automa... 阅读全文
posted @ 2016-01-18 11:52 哑吧湖大水怪 阅读(710) 评论(1) 推荐(0)
摘要:1 /* 2 * 演示Unity 注入 3 * */ 4 using Microsoft.Practices.Unity; 5 using System; 6 7 namespace Unity.Property.Inject 8 { 9 class Program... 阅读全文
posted @ 2015-01-11 13:09 哑吧湖大水怪 阅读(1100) 评论(0) 推荐(1)
摘要:手工设置Windows服务依赖关系,达到启动某一服务后再启动另一服务例:sc config "服务名" depend= "服务名"sc config "Archive Data Load Service" depend= mssqlserver启动SQL服务后再启动AM服务 阅读全文
posted @ 2013-05-03 09:23 哑吧湖大水怪 阅读(527) 评论(0) 推荐(1)
摘要:看到下面的内容,我很难理解这里的线程冲突是如何产生的~~ 转载:http://user.qzone.qq.com/99363590/blog/1276398251 阅读全文
posted @ 2010-12-14 14:53 哑吧湖大水怪 阅读(940) 评论(2) 推荐(1)
摘要:话不多说,见代码~代码 阅读全文
posted @ 2010-11-11 16:30 哑吧湖大水怪 阅读(399) 评论(4) 推荐(1)
摘要:C#实现IOCP(完成端口)的详细代码如下:以上就是C#实现IOCP(完成端口)的详细代码示例,希望对你有所帮助。 阅读全文
posted @ 2010-10-20 12:53 哑吧湖大水怪 阅读(2014) 评论(0) 推荐(0)
摘要:try { RegistryKey hklm = Registry.LocalMachine; RegistryKey run = hklm.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run"); if (checkBox1.Checked == true) { run.SetValue("thisApplication.ex... 阅读全文
posted @ 2010-09-28 14:31 哑吧湖大水怪 阅读(324) 评论(0) 推荐(0)
摘要:本文为转载 :http://space.itpub.net/12921506/viewspace-466220一、用var定义变量在C#3.0中提供了一种新的声明变量的方式,这就是var。通过这个关键字,在声明变量时就无需指定类型了,变量类型是在初始化时由编译器确定的。代码如下:varss="abcd";MessageBox.Show(ss.GetType().ToString());上面的代码将... 阅读全文
posted @ 2010-09-27 17:01 哑吧湖大水怪 阅读(259) 评论(0) 推荐(0)
摘要:转载自:http://www.cnblogs.com/tishifu/archive/2008/01/03/1024513.html定义以下枚举public enum BookType{ Ticket, Trip, Hotel}从String到enumBookType type = (BookType)Enum.Parse(typeof(BookType),"Ticket");从enum到Stri... 阅读全文
posted @ 2010-09-20 17:52 哑吧湖大水怪 阅读(951) 评论(0) 推荐(0)