public static void replace_misspelling(cef_browser_host_t *self, cef_string_t *word) { replace_misspelling_delegate d; var p = self->_replace_misspelling; if (p == _p16) { d = _d16; } else { d = (replace_misspelling_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(replace_misspelling_delegate)); if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; } } d(self, word); }
public static void replace_misspelling(cef_browser_host_t* self, cef_string_t* word) { replace_misspelling_delegate d; var p = self->_replace_misspelling; if (p == _p16) { d = _d16; } else { d = (replace_misspelling_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(replace_misspelling_delegate)); if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; } } d(self, word); }