Exemple #1
0
        public static cef_string_userfree *get_attribute_byindex(cef_xml_reader_t *self, int index)
        {
            get_attribute_byindex_delegate d;
            var p = self->_get_attribute_byindex;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (get_attribute_byindex_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_attribute_byindex_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            return(d(self, index));
        }
 public static cef_string_userfree* get_attribute_byindex(cef_xml_reader_t* self, int index)
 {
     get_attribute_byindex_delegate d;
     var p = self->_get_attribute_byindex;
     if (p == _p14) { d = _d14; }
     else
     {
         d = (get_attribute_byindex_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_attribute_byindex_delegate));
         if (_p14 == IntPtr.Zero) { _d14 = d; _p14 = p; }
     }
     return d(self, index);
 }