public override object Resolve(SymbolContext context) { if (context.StaticParameters != null && context.StaticParameters.ContainsKey(this.Value)) { return(context.StaticParameters[this.Value]); } return(RetrieveAttributeValue(this, context.RecordRefence, context.OrganizationService)); }
public override object Resolve(SymbolContext context) { if (string.IsNullOrEmpty(this.Value)) { return(string.Empty); } string functionName = this.Value.Trim(); object[] parametes = new object[ChildExpressions.Count]; if (ChildExpressions.Count > 0) { for (int i = 0; i < parametes.Length; i++) { parametes[i] = ChildExpressions[i].Resolve(context); } } Type functionType = Type.GetType("DXTools.CRM.Solutions.CustomEmails.Common.TextProcessing.Functions." + functionName); IDynFunctionHandler functionHanlder = Activator.CreateInstance(functionType) as IDynFunctionHandler; return(functionHanlder.Invoke(parametes)); }
public override object Resolve(SymbolContext context) { return(this.Value); }
public abstract object Resolve(SymbolContext context);