Exemplo n.º 1
0
        public static int has_value(cef_xml_reader_t *self)
        {
            has_value_delegate d;
            var p = self->_has_value;

            if (p == _p10)
            {
                d = _d10;
            }
            else
            {
                d = (has_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_value_delegate));
                if (_p10 == IntPtr.Zero)
                {
                    _d10 = d; _p10 = p;
                }
            }
            return(d(self));
        }
 public static int has_value(cef_xml_reader_t* self)
 {
     has_value_delegate d;
     var p = self->_has_value;
     if (p == _p10) { d = _d10; }
     else
     {
         d = (has_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_value_delegate));
         if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; }
     }
     return d(self);
 }