Exemplo n.º 1
0
 /// <summary>
 /// Adds a StringValue as the "name" and a Value as the "value" to the 
 /// internal Dictionary.  Values are checked to ensure no duplication occurs 
 /// in the internal Dictionary.
 /// </summary>
 /// <param name="name">StringValue "name" to add to the internal dictionary</param>
 /// <param name="value">Value "value" to add to the internal dictionary</param>
 public void Add(StringValue name, Value value)
 {
     if (!this._namevaluepairs.ContainsKey(name))
         this._namevaluepairs.Add(name, value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a Value to the internal object array.  Values are checked to 
 /// ensure no duplication occurs in the internal array.
 /// </summary>
 /// <param name="value">Value to add to the internal array</param>
 public void Add(Value value)
 {
     if (!this._values.Contains(value))
         this._values.Add(value);
 }