Esempio n. 1
0
 public RespListMgr()
 {
     //构造责任链
     bigboy    = new BigBoy(100, null);
     littleboy = new LittleBoy(0, bigboy);
 }
Esempio n. 2
0
 public BigBoy(int weight, IRepNode next) : base(weight, next)
 {
 }
Esempio n. 3
0
 public LittleBoy(int weight, IRepNode next) : base(weight, next)
 {
 }
Esempio n. 4
0
 public IRepNode(int weight, IRepNode next)
 {
     this.weight = weight;
     this.next   = next;
 }