Inheritance: TransformerEventArgs
Exemplo n.º 1
0
        protected virtual string OnVariableMatch(string text, string variable, Dictionary <string, string> variables)
        {
            if (this.VariableMatch != null)
            {
                VariableMatchEventArgs e = new VariableMatchEventArgs(text, variable, variables);
                this.VariableMatch(this, e);

                return(e.VariableValue);
            }

            return(variables[variable]);
        }
Exemplo n.º 2
0
        protected virtual string OnVariableMatch(string text, string variable, Dictionary<string, string> variables)
        {
            if (this.VariableMatch != null)
            {
                VariableMatchEventArgs e = new VariableMatchEventArgs(text, variable, variables);
                this.VariableMatch(this, e);

                return e.VariableValue;
            }

            return variables[variable];
        }