public static int has_switch(cef_command_line_t *self, cef_string_t *name) { has_switch_delegate d; var p = self->_has_switch; if (p == _pe) { d = _de; } else { d = (has_switch_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_switch_delegate)); if (_pe == IntPtr.Zero) { _de = d; _pe = p; } } return(d(self, name)); }
public static int has_switch(cef_command_line_t* self, cef_string_t* name) { has_switch_delegate d; var p = self->_has_switch; if (p == _pe) { d = _de; } else { d = (has_switch_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_switch_delegate)); if (_pe == IntPtr.Zero) { _de = d; _pe = p; } } return d(self, name); }