Example #1
0
 internal static IntPtr Wrap(CfxObject o)
 {
     if (o == null)
     {
         return(IntPtr.Zero);
     }
     lock (objects) {
         if (!objects.ContainsKey(o.nativePtrUnchecked))
         {
             objects.Add(o.nativePtrUnchecked, o);
         }
     }
     return(o.nativePtrUnchecked);
 }
Example #2
0
 internal static IntPtr Wrap(CfxObject o)
 {
     if(o == null) return IntPtr.Zero;
     lock(objects) {
         if(!objects.ContainsKey(o.nativePtrUnchecked)) {
             objects.Add(o.nativePtrUnchecked, o);
         }
     }
     return o.nativePtrUnchecked;
 }