常建57

路漫漫其修远兮。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年12月25日

摘要: Case:class A has a construct. class B is inherit from class A and B also has a construct. What's the order of the construct execute?Result: construct A -> construct B.Sample: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace TestInheri 阅读全文
posted @ 2013-12-25 22:39 常建57 阅读(333) 评论(0) 推荐(0) 编辑

摘要: Here is a sample about delegate and event.using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestHeaterDelegateSample{ public class Program { public static void Main(string[] args) { Heater heater = new Heater(); Moni... 阅读全文
posted @ 2013-12-25 22:12 常建57 阅读(178) 评论(0) 推荐(0) 编辑