public static int get_percent_complete(cef_download_item_t *self) { get_percent_complete_delegate d; var p = self->_get_percent_complete; if (p == _p8) { d = _d8; } else { d = (get_percent_complete_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_percent_complete_delegate)); if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; } } return(d(self)); }
public static int get_percent_complete(cef_download_item_t* self) { get_percent_complete_delegate d; var p = self->_get_percent_complete; if (p == _p8) { d = _d8; } else { d = (get_percent_complete_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_percent_complete_delegate)); if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; } } return d(self); }