public static UIntPtr get_page_ranges_count(cef_print_settings_t *self)
        {
            get_page_ranges_count_delegate d;
            var p = self->_get_page_ranges_count;

            if (p == _pe)
            {
                d = _de;
            }
            else
            {
                d = (get_page_ranges_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_page_ranges_count_delegate));
                if (_pe == IntPtr.Zero)
                {
                    _de = d; _pe = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 2
0
 public static UIntPtr get_page_ranges_count(cef_print_settings_t* self)
 {
     get_page_ranges_count_delegate d;
     var p = self->_get_page_ranges_count;
     if (p == _pe) { d = _de; }
     else
     {
         d = (get_page_ranges_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_page_ranges_count_delegate));
         if (_pe == IntPtr.Zero) { _de = d; _pe = p; }
     }
     return d(self);
 }