06 2009 档案

摘要:[代码] 阅读全文
posted @ 2009-06-23 17:16 飞扬跋扈 阅读(517) 评论(1) 推荐(0)
摘要:IntroductionMy C++ code was trying to read an array of struct which contains string data in C# . To my surprise, I found that a struct array which contains only integer is very easy to get, but if you... 阅读全文
posted @ 2009-06-12 14:50 飞扬跋扈 阅读(530) 评论(1) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;namespace SocketDemo { class Program { static void Main() { Process proc = new Process(); proc.StartInfo.FileName... 阅读全文
posted @ 2009-06-09 16:55 飞扬跋扈 阅读(659) 评论(0) 推荐(0)
摘要:There are more than 30 methods in ASP.NET classes that deal with paths and/or URLs. Many developers coming from traditional ASP tend to stick with the methods they know from ASP (which are still there... 阅读全文
posted @ 2009-06-09 14:43 飞扬跋扈 阅读(266) 评论(1) 推荐(0)
摘要:其背后的philosophy就是所谓的单一职责原则,即:引起类变化的原因只应该有一个。当类拥有多个可能引起其变化的因子时,把每一个因子抽象成IVarX,分别拥有自己的继承树。挑取出一个主因子,由其拥有其他的IVarX,即: IVarMain<>------IVarX。挑选主要因子的依据往往因具体问题而异,无法一概而论。主因子往往按要解决的问题XXX而命名为IXXX,而次因子则往往命名为... 阅读全文
posted @ 2009-06-08 11:22 飞扬跋扈 阅读(199) 评论(1) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-06-05 12:44 飞扬跋扈 阅读(206) 评论(0) 推荐(0)