/// <summary> /// Add a variable to this context's table. /// </summary> /// <param name="name"></param> /// <param name="value"></param> /// <param name="isLocal"></param> /// <param name="isParam"></param> /// <param name="resultType"></param> public void AddVariable(XName name, object value, bool isLocal = false, bool isParam = false, XPathResultType? resultType = null) { var variable = new TriflesXPathExtensionVariable(name, value, isLocal, isParam, resultType); Table.AddVariable(variable); }
/// <summary> /// Adds a variable to this table under its own name (<see cref="TriflesXPathExtensionVariable.VariableName"/>). /// </summary> /// <param name="variable"></param> public void AddVariable(TriflesXPathExtensionVariable variable) { variables.Add(variable.VariableName, variable); }
/// <summary> /// Adds a variable to this table under the given name. /// </summary> /// <param name="name"></param> /// <param name="variable"></param> public void AddVariable(XName name, TriflesXPathExtensionVariable variable) { variables.Add(name, variable); }
/// <summary> /// Add a variable to this context's table. /// </summary> /// <param name="name"></param> /// <param name="value"></param> /// <param name="isLocal"></param> /// <param name="isParam"></param> /// <param name="resultType"></param> public void AddVariable(XName name, object value, bool isLocal = false, bool isParam = false, XPathResultType?resultType = null) { var variable = new TriflesXPathExtensionVariable(name, value, isLocal, isParam, resultType); Table.AddVariable(variable); }
/// <summary> /// Adds a variable to this table under its own name (<see cref="TriflesXPathExtensionVariable.VariableName"/>). /// </summary> /// <param name="variable"></param> public void AddVariable(TriflesXPathExtensionVariable variable) { variables.Add(variable.VariableName, variable); }
/// <summary> /// Adds a variable to this table under the given name. /// </summary> /// <param name="name"></param> /// <param name="variable"></param> public void AddVariable(XName name, TriflesXPathExtensionVariable variable) { variables.Add(name, variable); }