static void OverrideAskPasswordFinish(GLib.GType gtype, AskPasswordFinishNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("ask_password_finish")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private GLib.TlsInteractionResult InternalAskPasswordFinish(GLib.IAsyncResult result) { AskPasswordFinishNativeDelegate unmanaged = class_abi.BaseOverride <AskPasswordFinishNativeDelegate>(this.LookupGType(), "ask_password_finish"); if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } IntPtr error = IntPtr.Zero; int __result = unmanaged(this.Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); return((GLib.TlsInteractionResult)__result); }
private GLib.TlsInteractionResult InternalAskPasswordFinish(GLib.IAsyncResult result) { AskPasswordFinishNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("ask_password_finish")); unmanaged = (AskPasswordFinishNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AskPasswordFinishNativeDelegate)); } if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } IntPtr error = IntPtr.Zero; int __result = unmanaged(this.Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); return((GLib.TlsInteractionResult)__result); }