Ejemplo n.º 1
0
        public static int move_to_next_attribute(cef_xml_reader_t *self)
        {
            move_to_next_attribute_delegate d;
            var p = self->_move_to_next_attribute;

            if (p == _p1e)
            {
                d = _d1e;
            }
            else
            {
                d = (move_to_next_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(move_to_next_attribute_delegate));
                if (_p1e == IntPtr.Zero)
                {
                    _d1e = d; _p1e = p;
                }
            }
            return(d(self));
        }
 public static int move_to_next_attribute(cef_xml_reader_t* self)
 {
     move_to_next_attribute_delegate d;
     var p = self->_move_to_next_attribute;
     if (p == _p1e) { d = _d1e; }
     else
     {
         d = (move_to_next_attribute_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(move_to_next_attribute_delegate));
         if (_p1e == IntPtr.Zero) { _d1e = d; _p1e = p; }
     }
     return d(self);
 }