Exemplo n.º 1
0
 public void SetSuccessor(Handler successor)
 {
     this.successor = successor;
 }
Exemplo n.º 2
0
 public void SetSuccessor(Handler handler)
 {
     this.successor = handler;
 }
Exemplo n.º 3
0
 public void SetNextHandler(Handler nextHandler)
 {
     this.nextHandler = nextHandler;
 }
Exemplo n.º 4
0
 public void setSuccessor(Handler successor)
 {
     //链的关键在于这里把下一个节点设置成继承者
     this.successor = successor;
     Console.WriteLine($"[Handler赋值]:{successor}");
 }