CFRetain() private method

private CFRetain ( IntPtr obj ) : IntPtr
obj System.IntPtr
return System.IntPtr
Beispiel #1
0
 internal CFString(IntPtr handle, bool owns)
 {
     this.handle = handle;
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
 }
Beispiel #2
0
 public CFDictionary(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
     this.Handle = handle;
 }
Beispiel #3
0
 public CFData(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Beispiel #4
0
 internal CFRunLoopSource(IntPtr handle, bool ownsHandle)
 {
     if (!ownsHandle)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Beispiel #5
0
        internal CFArray(IntPtr handle, bool owns)
        {
            if (handle == IntPtr.Zero)
            {
                throw new ArgumentNullException("handle");
            }

            this.handle = handle;
            if (!owns)
            {
                CFObject.CFRetain(handle);
            }
        }
Beispiel #6
0
 internal CFRunLoopSource(IntPtr handle)
 {
     CFObject.CFRetain(handle);
     this.handle = handle;
 }