/// <summary> /// Gets the <see cref="PlTerm"/> of the given variable name or throw an ArgumentException. /// </summary> /// <param name="name">The name of the variable</param> /// <returns>The PlTerm (value) of the variable </returns> /// <exception cref="ArgumentException">Is thrown if the name is not the name of a variable.</exception> public PlTerm this[string name] { get { PlQueryVar v = _vars.Find(n1 => n1.Name == name); if (v == null) { throw new ArgumentException("'" + name + "' is not a variable", "name"); } return(v.Value); } }
internal void Add(PlQueryVar var) { _vars.Add(var); }
public void Add(PlQueryVar var) { _vars.Add(var); }