static void OverrideStopSearch(GLib.GType gtype, StopSearchNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("stop_search")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalStopSearch() { StopSearchNativeDelegate unmanaged = class_abi.BaseOverride <StopSearchNativeDelegate>(this.LookupGType(), "stop_search"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalStopSearch() { StopSearchNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("stop_search")); unmanaged = (StopSearchNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(StopSearchNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle); }