public static int has_selection(cef_domdocument_t *self) { has_selection_delegate d; var p = self->_has_selection; if (p == _pa) { d = _da; } else { d = (has_selection_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_selection_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return(d(self)); }
public static int has_selection(cef_domdocument_t* self) { has_selection_delegate d; var p = self->_has_selection; if (p == _pa) { d = _da; } else { d = (has_selection_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_selection_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return d(self); }