Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public static void RegisterReplacer(IExpReplacer replacer)
 {
     replacers.Add(replacer);
 }