Inheritance: TransformerEventArgs
Esempio 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]);
        }
Esempio 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];
        }