public static void plist_dict_get_item_key(PlistHandle node, out string key) { System.Runtime.InteropServices.ICustomMarshaler keyMarshaler = NativeStringMarshaler.GetInstance(null); System.IntPtr keyNative = System.IntPtr.Zero; PlistNativeMethods.plist_dict_get_item_key(node, out keyNative); key = ((string)keyMarshaler.MarshalNativeToManaged(keyNative)); keyMarshaler.CleanUpNativeData(keyNative); }
/// <summary> /// Get key associated key to an item. Item must be member of a dictionary. /// </summary> /// <param name="node"> /// the item /// </param> /// <param name="key"> /// a location to store the key. The caller is responsible for freeing the returned string. /// </param> public virtual void plist_dict_get_item_key(PlistHandle node, out string key) { PlistNativeMethods.plist_dict_get_item_key(node, out key); }