Exemple #1
0
        public static cef_string_userfree *get_attribute_bylname(cef_xml_reader_t *self, cef_string_t *localName, cef_string_t *namespaceURI)
        {
            get_attribute_bylname_delegate d;
            var p = self->_get_attribute_bylname;

            if (p == _p16)
            {
                d = _d16;
            }
            else
            {
                d = (get_attribute_bylname_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_attribute_bylname_delegate));
                if (_p16 == IntPtr.Zero)
                {
                    _d16 = d; _p16 = p;
                }
            }
            return(d(self, localName, namespaceURI));
        }
 public static cef_string_userfree* get_attribute_bylname(cef_xml_reader_t* self, cef_string_t* localName, cef_string_t* namespaceURI)
 {
     get_attribute_bylname_delegate d;
     var p = self->_get_attribute_bylname;
     if (p == _p16) { d = _d16; }
     else
     {
         d = (get_attribute_bylname_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_attribute_bylname_delegate));
         if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; }
     }
     return d(self, localName, namespaceURI);
 }