public static cef_string_userfree *get_frame_charset(cef_context_menu_params_t *self)
        {
            get_frame_charset_delegate d;
            var p = self->_get_frame_charset;

            if (p == _pc)
            {
                d = _dc;
            }
            else
            {
                d = (get_frame_charset_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_charset_delegate));
                if (_pc == IntPtr.Zero)
                {
                    _dc = d; _pc = p;
                }
            }
            return(d(self));
        }
Пример #2
0
 public static cef_string_userfree* get_frame_charset(cef_context_menu_params_t* self)
 {
     get_frame_charset_delegate d;
     var p = self->_get_frame_charset;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_frame_charset_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_charset_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self);
 }