public VideoOrientationAdapter(IVideoOrientationImplementor implementor) { if (implementor == null) { throw new ArgumentNullException("implementor"); } else if (!(implementor is GLib.Object)) { throw new ArgumentException("implementor must be a subclass of GLib.Object"); } this.implementor = implementor as GLib.Object; }
static bool GetVcenter_cb(IntPtr inst, out int center) { try { IVideoOrientationImplementor __obj = GLib.Object.GetObject(inst, false) as IVideoOrientationImplementor; bool __result; __result = __obj.GetVcenter(out center); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }