Ejemplo n.º 1
0
        public static int set_value_bykey(cef_v8value_t *self, cef_string_t *key, cef_v8value_t *value, CefV8PropertyAttribute attribute)
        {
            set_value_bykey_delegate d;
            var p = self->_set_value_bykey;

            if (p == _p22)
            {
                d = _d22;
            }
            else
            {
                d = (set_value_bykey_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_value_bykey_delegate));
                if (_p22 == IntPtr.Zero)
                {
                    _d22 = d; _p22 = p;
                }
            }
            return(d(self, key, value, attribute));
        }
Ejemplo n.º 2
0
 public static int set_value_bykey(cef_v8value_t* self, cef_string_t* key, cef_v8value_t* value, CefV8PropertyAttribute attribute)
 {
     set_value_bykey_delegate d;
     var p = self->_set_value_bykey;
     if (p == _p22) { d = _d22; }
     else
     {
         d = (set_value_bykey_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_value_bykey_delegate));
         if (_p22 == IntPtr.Zero) { _d22 = d; _p22 = p; }
     }
     return d(self, key, value, attribute);
 }