public GenericVariable GetGenericVariableByContextName(GenericVariable.VariableContext context, string varName) { GenericVariable retVal = null; if (GenericVariables != null && GenericVariables.Count > 0) { retVal = GenericVariables.Find(delegate(GenericVariable v) { return(v.Context == context && v.Name.Equals(varName, StringComparison.InvariantCultureIgnoreCase)); }); } return(retVal); }
public void AddGenericVariable(GenericVariable.VariableContext context, string name, string value) { GenericVariables.Add(new GenericVariable(context, name, value)); }