CFRetain() private method

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

            this.handle = handle;
            if (!owns)
            {
                CFObject.CFRetain(handle);
            }
        }
Ejemplo n.º 6
0
 internal CFRunLoopSource(IntPtr handle)
 {
     CFObject.CFRetain(handle);
     this.handle = handle;
 }