public static IPara GetReplaceValue(string exp, IEventArgs args) { for (int i = 0, maxi = replacers.Count; i < maxi; i++) { IExpReplacer replacer = replacers[i]; if (replacer.CanHandle(exp, args)) { return(replacer.Replace(exp, args)); } } return(null); }
public static void RegisterReplacer(IExpReplacer replacer) { replacers.Add(replacer); }