示例#1
0
 public virtual bool Validate(string banknote)
 {
     return(_nextHandler != null && _nextHandler.Validate(banknote));
 }
 public bool Validate(Banknote banknote)
 {
     return(Banknote.Equals(banknote) || _nextHandler != null && _nextHandler.Validate(banknote));
 }