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