摘要:
代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 List scores = new List{88,99}; 阅读全文
摘要:
代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public class Mobile 2 3 { 4 5 public int Length { get; set; } 6 7 public int Width... 阅读全文
摘要:
1.Partial Classes(部分类) Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public partial class Part 2 { 3 public void GetMoney() 4 ... 阅读全文
摘要:
var v = new { Amount = 108, Message = "Hello" }; 阅读全文
摘要:
public class Mobile { public int Length { get; set; } public int Width { get; set; } } 阅读全文
摘要:
在.NET中,string数据类型很特别,它本身是引用类型,这是毫无疑问的.但是有时它表现出让人困惑的行为! Scenario1: C#代码1:结果是True Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 namespace Strin... 阅读全文
摘要:
接口支持多继承; 抽象类支持缺省实现; is-a vs can-do ; Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public interface ITh 2 { 3 voi... 阅读全文
摘要:
Although an abstract method is implicitly also a virtual method, it cannot have the modifier virtual. Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com... 阅读全文
摘要:
密封方法阻止继承类进一步的重写该方法。 public sealed override void Test() { //do it } http://msdn.microsoft.com/en-us/library/aa645769(VS.71).aspx 阅读全文
摘要:
The method overridden by an override declaration is known as the overridden base method. For an override method M declared in a class C, the overridden base method is determined by examining each base... 阅读全文