摘要:google的自动提示下拉菜单,非常让人感动的小改动:
阅读全文
摘要:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/8b7799c1-cebc-4b11-b3d5-34ab7b728077.asp
阅读全文
摘要:At the age of .net, all the benefits c++ could have is deduced to the efficiency. It gives you way too much control over the working of the native layer infrastructure. While the cpu is growing faster...
阅读全文
摘要:让类成员字段在初始化列表中出现的顺序和他们被申明的顺序保持一致,因为程序执行的时候是按照成员字段被定义的顺序来通过初始化列表进行初始化的。考虑到析构函数通常要以初始化相反的顺序对乘员字段进行销毁,所以严格按照定义的顺序进行初始化可以保证析构的时候只要按照定义相反的顺序进行析构成员字段,否则你的析构函数需要知道具体的成员是按照什么顺序进行初始化的。所以保持初始化列表的顺序可以使得程序更容易理解。另外...
阅读全文
摘要:x/o mappingxml data binding linqhttp://blogs.msdn.com/xmlteam/archive/2006/11/27/typed-xml-programmer-welcome-to-linq.aspx
阅读全文
摘要:http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/maintain/featusability/c06iis.mspxhttp://msdn2.microsoft.com/en-us/library/aa302411.aspx
阅读全文
摘要:public Person(string firstName, string lastName) :this(firstName,lastName,0) { } public Person(string firstName, string lastName, int age) { ...
阅读全文
摘要:在通常的情况下,调用new操作的时候,一般都不会去关心是否有足够的内存使得这个操作可以成功。但是做为一个完美的程序,有必要去处理一下内存不够的情况。在默认情况下,内存分配失败会导致返回null或者抛出一个std::bad_alloc异常,所以需要在每次new的时候检查返回值是否为NULL或者在new上包裹一个try catch块。不过,除了每次不厌其烦得关心new是否成功,我们可以利用C++提供的...
阅读全文
摘要:Template/inheritance based NewHandler support, a good solution to add memory allocation failure support at class levelthe template is used to provide unique currentHandler pointer for each class, the ...
阅读全文
摘要:ExecuteScaler : 只读,读取返回结果集合里面第一行第一列ExecuteNonQuery:只写,适合于只需要修改的情况ExecuteReader:只读,可以读取多行DataAdapter / DataSet:读取之后,可以进行离线操作,然后再把改动update回数据苦,功能相当于一个数据库:有relation,constraint,view,sort,search支持,而且可以直接和....
阅读全文
摘要:static void Main(string[] args) { using (SqlConnection connection = new SqlConnection(CSharpTest.Properties.Settings.Default.Database1ConnectionString)) { ...
阅读全文
摘要:一个提供连接字符串的网站,很全:http://connectionstrings.com/
阅读全文
摘要:The program below demonstrates output the trace to three different place, it's a very cool feature in .net, very convenient and exactly what we desire of most of the time.1 eventlog2 console3 textfil...
阅读全文
摘要:System.Data.DataTable dt = System.Data.Common.DbProviderFactories.GetFactoryClasses(); for (int i = 0; i < dt.Rows.Count; i++) { Console.WriteLine("...
阅读全文
摘要:class Person { public Person(string firstName, string lastName) :this(firstName,lastName,0) { } public Person(string firstName, string lastName, i...
阅读全文