摘要: publicclassMyClass{publicintValue;}//MSDN:http://msdn.microsoft.com/zh-cn/library/s6938f28%28v=vs.80%29.aspx//引用类型的变量不直接包含其数据;它包含的是对其数据的引用。当通过值传递引用类型的参数时,有可能更改引用所指向的数据,如某类成员的值。//但是无法更改引用本身的值;也就是说,不能使用相同的引用为新类分配内存并使之在块外保持。//若要这样做,应使用ref或out关键字传递参数。//引用类型参数没有加ref试图将参数重新分配到不同的内存位置时,该操作仅在方法内有效,并不影响原始变量c 阅读全文
posted @ 2011-10-13 11:38 Aleax 阅读(303) 评论(1) 推荐(0) 编辑
摘要: Winform下的HTMLEditor引用Microsoft.mshtml的注意事项 阅读全文
posted @ 2011-08-31 16:25 Aleax 阅读(3985) 评论(0) 推荐(1) 编辑
摘要: 记下,以备后查.staticvoidTestThread4(){//1.直接写方法Threadt1=newThread(PrintMessage);t1.Start("TestThread1");//2.使用ParameterizedthreadStartThreadt2=newThread(newParameterizedThreadStart(PrintMessage));t2.Start("TestThread2");//3.使用LambdaThreadt3=newThread(()=>Print("TestThread3" 阅读全文
posted @ 2011-03-31 17:46 Aleax 阅读(5717) 评论(0) 推荐(0) 编辑
摘要: 记录 List<T>功能中的Sort和Find功能的几种实现方式Person类 publicclassPerson:IComparable<Person>{publicstringName{get;set;}publicintAge{get;set;}publicPerson(stringname,intage){this.Name=name;this.Age=age;}publicintCompareTo(Personp){returnthis.Age-p.Age;}publicstaticintNameCompareTo(Personp1,Personp2){ret 阅读全文
posted @ 2011-03-31 17:26 Aleax 阅读(2755) 评论(0) 推荐(0) 编辑
摘要: 1.创建表结构和数据 创建表和数据CreateTableProduct--产品表(ProductIDIntIdentity(1,1)Primarykey,--产品IDProductNameNVarchar(100)NotNull,--产品名称ProductPriceIntNotNull--价格)GOCreateTableProductOrder--产品订单(OrderIDIntIdentity(1000,1)Primarykey,ProductIDInt,QuantityInt,--数量amountInt,--金额OrderDateTimeDateTimeNotNull--下单时间)Alter 阅读全文
posted @ 2011-03-11 11:17 Aleax 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 1.用JS中的this来模拟C#中的实体类, 将实体整体传出到相应方法中进行操作.<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title></title><scripttype="t 阅读全文
posted @ 2011-03-04 11:37 Aleax 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 1. 创建WCF服务器端程序2. 创建一个实体类3.创建一个服务的接口 4.实现这个服务接口5.修改App.config来启动WCF服务 6.创建一个客户端,引用服务7.编写相应的代码相应结果代码下载: Download 阅读全文
posted @ 2010-12-03 17:52 Aleax 阅读(458) 评论(0) 推荐(1) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--Declare@UserIDListVarChar(20),@SQLNVarChar(200)Set@UserIDList='1,2,3'Set@SQL='Select*fromMemberWhere... 阅读全文
posted @ 2010-12-01 21:37 Aleax 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 1.多个Ajax 在一个function中的执行顺序 由于Jquery中的Ajax的async默认是true(异步请求),如果想一个Ajax执行完后再执行另一个Ajax, 需要把async=false就可以了.代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.co... 阅读全文
posted @ 2010-11-30 21:29 Aleax 阅读(11200) 评论(0) 推荐(1) 编辑
摘要: [代码] 阅读全文
posted @ 2010-11-19 16:40 Aleax 阅读(42146) 评论(0) 推荐(2) 编辑