/// <summary> /// Initializes a new instance of the <see cref="CefStringMap"/> class. /// </summary> public CefStringMap() { _instance = CefNativeApi.cef_string_map_alloc(); #if DEBUG _finalizable = true; #endif }
private void Dispose(bool disposing) { if (_instance.Base == null) { return; } CefNativeApi.cef_string_map_clear(_instance); CefNativeApi.cef_string_map_free(_instance); _instance = default; }
private CefStringMap(cef_string_map_t instance) { _instance = instance; }
/// <summary> /// Initializes a new instance of the <see cref="CefStringMap"/> class. /// </summary> /// <param name="instance">The native string map instance.</param> public CefStringMap(cef_string_map_t instance) { _instance = instance; GC.SuppressFinalize(this); }