Example #1
0
        static public T [] ArrayFromHandle <T> (NativeHandle handle, Converter <NativeHandle, T> creator, bool releaseHandle)
        {
            var rv = ArrayFromHandle <T> (handle, creator);

            if (releaseHandle && handle == NativeHandle.Zero)
            {
                NSObject.DangerousRelease(handle);
            }
            return(rv);
        }
Example #2
0
 public static void ReleaseNative(IntPtr handle)
 {
     NSObject.DangerousRelease(handle);
 }
Example #3
0
 public static void ReleaseNative(NativeHandle handle)
 {
     NSObject.DangerousRelease(handle);
 }