Example #1
0
        public static int has_key(cef_dictionary_value_t *self, cef_string_t *key)
        {
            has_key_delegate d;
            var p = self->_has_key;

            if (p == _pb)
            {
                d = _db;
            }
            else
            {
                d = (has_key_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_key_delegate));
                if (_pb == IntPtr.Zero)
                {
                    _db = d; _pb = p;
                }
            }
            return(d(self, key));
        }
 public static int has_key(cef_dictionary_value_t* self, cef_string_t* key)
 {
     has_key_delegate d;
     var p = self->_has_key;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (has_key_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_key_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     return d(self, key);
 }