06 2009 档案
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:其背后的philosophy就是所谓的单一职责原则,即:引起类变化的原因只应该有一个。当类拥有多个可能引起其变化的因子时,把每一个因子抽象成IVarX,分别拥有自己的继承树。挑取出一个主因子,由其拥有其他的IVarX,即: IVarMain<>------IVarX。挑选主要因子的依据往往因具体问题而异,无法一概而论。主因子往往按要解决的问题XXX而命名为IXXX,而次因子则往往命名为...
阅读全文

浙公网安备 33010602011771号