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); }
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; }