public static int is_main(cef_frame_t *self) { is_main_delegate d; var p = self->_is_main; if (p == _p12) { d = _d12; } else { d = (is_main_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_main_delegate)); if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; } } return(d(self)); }
public static int is_main(cef_frame_t* self) { is_main_delegate d; var p = self->_is_main; if (p == _p12) { d = _d12; } else { d = (is_main_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_main_delegate)); if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; } } return d(self); }