public IntPtr NativeCallback(IntPtr obj)
 {
     try {
         Cdn.MiniObject __ret = managed(Cdn.MiniObject.GetObject(obj));
         if (release_on_call)
         {
             gch.Free();
         }
         return(__ret == null ? IntPtr.Zero : __ret.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: Above call does not return.
         throw e;
     }
 }
Пример #2
0
 void InvokeNative(Cdn.MiniObject obj)
 {
     native_cb(obj == null ? IntPtr.Zero : obj.Handle);
 }
 Cdn.MiniObject InvokeNative(Cdn.MiniObject obj)
 {
     Cdn.MiniObject result = Cdn.MiniObject.GetObject(native_cb(obj == null ? IntPtr.Zero : obj.Handle)) as Cdn.MiniObject;
     return(result);
 }