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