Beispiel #1
0
 /// <summary>
 /// Insert a new item into a #PLIST_DICT node.
 /// </summary>
 /// <param name="node">
 /// the node of type #PLIST_DICT
 /// </param>
 /// <param name="item">
 /// the new item to insert
 /// </param>
 /// <param name="key">
 /// The identifier of the item to insert.
 /// </param>
 public virtual void plist_dict_insert_item(PlistHandle node, string key, PlistHandle item)
 {
     PlistNativeMethods.plist_dict_insert_item(node, key, item);
     item.SetHandleAsInvalid();
 }
Beispiel #2
0
 /// <summary>
 /// Insert a new item at position n in a #PLIST_ARRAY node.
 /// </summary>
 /// <param name="node">
 /// the node of type #PLIST_ARRAY
 /// </param>
 /// <param name="item">
 /// the new item to insert. The array is responsible for freeing item when it is no longer needed.
 /// </param>
 /// <param name="n">
 /// The position at which the node will be stored. Range is [0, array_size[. Assert if n is not in range.
 /// </param>
 public virtual void plist_array_insert_item(PlistHandle node, PlistHandle item, uint n)
 {
     PlistNativeMethods.plist_array_insert_item(node, item, n);
     item.SetHandleAsInvalid();
 }