CFRetain() private méthode

private CFRetain ( IntPtr obj ) : IntPtr
obj System.IntPtr
Résultat System.IntPtr
Exemple #1
0
 internal CFString(IntPtr handle, bool owns)
 {
     this._handle = handle;
     if (!owns)
     {
         CoreFoundation.CFRetain(handle);
     }
 }
Exemple #2
0
 internal CFDictionary(IntPtr handle, bool owns)
 {
     if (handle == IntPtr.Zero)
     {
         throw new ArgumentNullException("handle");
     }
     this._handle = handle;
     if (!owns)
     {
         CoreFoundation.CFRetain(handle);
     }
 }