public uint CreateAndGetID(CefV8Value iJSObject) { return _CefV8Context.Evaluate(() => { var value = iJSObject.GetValue("_globalId_"); if (value.IsUInt) return value.GetUIntValue(); iJSObject.SetValue("_globalId_", CefV8Value.CreateUInt(++_Count), CefV8PropertyAttribute.DontDelete | CefV8PropertyAttribute.ReadOnly | CefV8PropertyAttribute.DontEnum); return _Count; }); }
public uint GetID(CefV8Value iJSObject) { return _CefV8Context.Evaluate(() => iJSObject.GetValue("_globalId_").GetUIntValue()); }
public uint GetID(CefV8Value iJSObject) { if (iJSObject == null) return 0; return _CefV8Context.Evaluate(() => iJSObject.GetValue("_MappedId").GetUIntValue()); }