public static cef_string_userfree *get_element_attribute(cef_domnode_t *self, cef_string_t *attrName)
        {
            get_element_attribute_delegate d;
            var p = self->_get_element_attribute;

            if (p == _p18)
            {
                d = _d18;
            }
            else
            {
                d = (get_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_attribute_delegate));
                if (_p18 == IntPtr.Zero)
                {
                    _d18 = d; _p18 = p;
                }
            }
            return(d(self, attrName));
        }
Пример #2
0
 public static cef_string_userfree* get_element_attribute(cef_domnode_t* self, cef_string_t* attrName)
 {
     get_element_attribute_delegate d;
     var p = self->_get_element_attribute;
     if (p == _p18) { d = _d18; }
     else
     {
         d = (get_element_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_attribute_delegate));
         if (_p18 == IntPtr.Zero) { _d18 = d; _p18 = p; }
     }
     return d(self, attrName);
 }