示例#1
0
        public static cef_string_userfree *get_method(cef_request_t *self)
        {
            get_method_delegate d;
            var p = self->_get_method;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (get_method_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_method_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
 public static cef_string_userfree* get_method(cef_request_t* self)
 {
     get_method_delegate d;
     var p = self->_get_method;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (get_method_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_method_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }