public static CefContextMenuMediaType get_media_type(cef_context_menu_params_t *self) { get_media_type_delegate d; var p = self->_get_media_type; if (p == _pd) { d = _dd; } else { d = (get_media_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_media_type_delegate)); if (_pd == IntPtr.Zero) { _dd = d; _pd = p; } } return(d(self)); }
public static CefContextMenuMediaType get_media_type(cef_context_menu_params_t* self) { get_media_type_delegate d; var p = self->_get_media_type; if (p == _pd) { d = _dd; } else { d = (get_media_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_media_type_delegate)); if (_pd == IntPtr.Zero) { _dd = d; _pd = p; } } return d(self); }