Example #1
0
 public static double get_double(cef_list_value_t* self, int index)
 {
     get_double_delegate d;
     var p = self->_get_double;
     if (p == _pe) { d = _de; }
     else
     {
         d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
         if (_pe == IntPtr.Zero) { _de = d; _pe = p; }
     }
     return d(self, index);
 }
 public static double get_double(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_double_delegate d;
     var p = self->_get_double;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self, key);
 }