public AsyncResultAdapter (IAsyncResultImplementor 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; }
public AsyncResultAdapter(IAsyncResultImplementor 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 IsTagged_cb(IntPtr inst, IntPtr source_tag) { try { IAsyncResultImplementor __obj = GLib.Object.GetObject(inst, false) as IAsyncResultImplementor; bool __result; __result = __obj.IsTagged(source_tag); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetSourceObject_cb(IntPtr inst) { try { IAsyncResultImplementor __obj = GLib.Object.GetObject(inst, false) as IAsyncResultImplementor; GLib.Object __result; __result = __obj.SourceObject; return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetUserData_cb(IntPtr inst) { try { IAsyncResultImplementor __obj = GLib.Object.GetObject(inst, false) as IAsyncResultImplementor; IntPtr __result; __result = __obj.UserData; return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }