express|visual 安裝:下了Express Edition幾天了,安裝時碰到了一些問題。原先機器裡裝過VS 2005的預覽版。1.2的.Net Framework和Java#等在控制台的安裝卸載中出現的都能卸掉了。問題出在一直要我卸載Visual Studio .Net Prerequisites,原安裝盤早刪了。最後的解決辦法是在註冊表裡查"Visual Studio .Net
編程|規範 續之一,小雞射手接著翻譯了IDesign編碼規範的第二章前部。2 編碼慣例 Coding Practices 1. 避免在一個檔案中放多個類。 Avoid putting multiple classes in a single file. 2. 一個檔案應該只對一個命名空間提供類型。避免在同一檔案中有多個命名空間。 A single file should only contribute types to a
編碼|規範 續之二,IDesign C#編碼規範之三。34. 避免使用new繼承修飾符,而是使用override。 Avoid using the new inheritance qualifier. Use override instead. 35. 對非密封類總是將public和protected方法標記為virtual。 Always mark public and protected methods as
今天開始寫Paser了,不過是從SharpDevelop借過來而已(不想重新發明輪子,^_^)。但是,還是對原先的代碼作了一些修改,即使到了RC2了,SharpDevelop的代碼中還是存在問題。今天看代碼是就發現了兩處。比如下面的代碼: static public int Compare(IList a, IList b, IComparer comparer) { if (a == null || b == null) { return 1; }
This is an article on Constructors in C#, for the beginner level programmers. It covers simple constructors, constructors overloading, behaviour of constructors in inheritance, constructor chaining and static constructors. At the end, it contains
列印 [System.Runtime.InteropServices.DllImport("gdi32.dll")]public static extern long BitBlt (IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop);private