Represents one variable of a Query result.
Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
 internal void Add(PlQueryVar var)
 {
     _vars.Add(var);
 }
Exemple #3
0
 public void Add(PlQueryVar var)
 {
     _vars.Add(var);
 }
Exemple #4
0
 public void Add(PlQueryVar var)
 {
     _vars.Add(var);
 }