上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 43 下一页
摘要: 代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 List scores = new List{88,99}; 阅读全文
posted @ 2008-07-30 10:47 许晓光 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 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... 阅读全文
posted @ 2008-07-29 14:59 许晓光 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2008-07-28 10:43 许晓光 阅读(170) 评论(0) 推荐(0) 编辑
摘要: var v = new { Amount = 108, Message = "Hello" }; 阅读全文
posted @ 2008-07-25 16:22 许晓光 阅读(108) 评论(0) 推荐(0) 编辑
摘要: public class Mobile { public int Length { get; set; } public int Width { get; set; } } 阅读全文
posted @ 2008-07-24 17:31 许晓光 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 在.NET中,string数据类型很特别,它本身是引用类型,这是毫无疑问的.但是有时它表现出让人困惑的行为! Scenario1: C#代码1:结果是True Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 namespace Strin... 阅读全文
posted @ 2008-07-24 16:19 许晓光 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 接口支持多继承; 抽象类支持缺省实现; is-a vs can-do ; Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public interface ITh 2 { 3 voi... 阅读全文
posted @ 2008-07-23 10:39 许晓光 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2008-07-22 10:09 许晓光 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 密封方法阻止继承类进一步的重写该方法。 public sealed override void Test() { //do it } http://msdn.microsoft.com/en-us/library/aa645769(VS.71).aspx 阅读全文
posted @ 2008-07-21 15:35 许晓光 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2008-07-21 14:58 许晓光 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 43 下一页