Exemplo n.º 1
0
        public static int is_file(cef_drag_data_t *self)
        {
            is_file_delegate d;
            var p = self->_is_file;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (is_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_file_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 2
0
 public static int is_file(cef_drag_data_t* self)
 {
     is_file_delegate d;
     var p = self->_is_file;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (is_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_file_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }