예제 #1
0
 internal CFString(IntPtr handle, bool owns)
 {
     _handle = handle;
     if (!owns)
     {
         CoreFoundation.CFRetain(handle);
     }
 }
예제 #2
0
 internal CFDictionary(IntPtr handle, bool owns)
 {
     if (handle == IntPtr.Zero)
     {
         throw new ArgumentNullException("handle");
     }
     _handle = handle;
     if (!owns)
     {
         CoreFoundation.CFRetain(handle);
     }
 }