public static string Eval(Substitution sub, SubstitutionService subContainer) { if (!sub.IsValid) { return(sub.FuncName); } return(subContainer._groups[sub.Groupname][sub.FuncName](sub.FuncName)); }
public string this[string funcCall] { get { Substitution substitution = SubstitutionUtils.Parse(funcCall, this); if (!substitution.IsValid) { return(funcCall); } return(SubstitutionUtils.Eval(substitution, this)); } }