摘要:
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 阅读全文
摘要:
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... 阅读全文