摘要:
看到了孙展波周末休闲之.NET Quiz (10) 的一道题:以下代码质量不高,因为有经验的.NET程序员不会这样编程。如何修改? (代码背景: Suppose we are writing a control class that raises Loaded event when it is fully loaded. There is no need to provide additional... 阅读全文
摘要:
看到了孙展波周末休闲之.NET Quiz (10) 的一道题:以下代码质量不高,因为有经验的.NET程序员不会这样编程。如何修改? (代码背景: Suppose we are writing a control class that raises Loaded event when it is fully loaded. There is no need to provide additional... 阅读全文
摘要:
在C++中经常可以看到格式为 ~ClassName() 的析构函数,而在C#中“析构函数”很少被提及。到底是怎么回事?做个试验: using System;public class Test{ public Test() { Console.WriteLine("Test被构造。"); } ~Test() { Console.Wr... 阅读全文
|