public static cef_string_userfree *get_selection_text(cef_context_menu_params_t *self) { get_selection_text_delegate d; var p = self->_get_selection_text; if (p == _pf) { d = _df; } else { d = (get_selection_text_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_selection_text_delegate)); if (_pf == IntPtr.Zero) { _df = d; _pf = p; } } return(d(self)); }
public static cef_string_userfree* get_selection_text(cef_context_menu_params_t* self) { get_selection_text_delegate d; var p = self->_get_selection_text; if (p == _pf) { d = _df; } else { d = (get_selection_text_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_selection_text_delegate)); if (_pf == IntPtr.Zero) { _df = d; _pf = p; } } return d(self); }