public static int get_copies(cef_print_settings_t *self)
        {
            get_copies_delegate d;
            var p = self->_get_copies;

            if (p == _p17)
            {
                d = _d17;
            }
            else
            {
                d = (get_copies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_copies_delegate));
                if (_p17 == IntPtr.Zero)
                {
                    _d17 = d; _p17 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 2
0
 public static int get_copies(cef_print_settings_t* self)
 {
     get_copies_delegate d;
     var p = self->_get_copies;
     if (p == _p17) { d = _d17; }
     else
     {
         d = (get_copies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_copies_delegate));
         if (_p17 == IntPtr.Zero) { _d17 = d; _p17 = p; }
     }
     return d(self);
 }