Exemplo n.º 1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="match">匹配项</param>
 /// <param name="handler">处理器</param>
 public MatchInfo(Match match, TextHandler handler)
 {
     this.match = match; this.handler = handler;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 注册处理器
 /// </summary>
 /// <param name="handler">处理器</param>
 public void registerHandler(TextHandler handler)
 {
     handlers.Add(handler);
 }