Exemple #1
0
        /// <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
        }
Exemple #2
0
        private void Dispose(bool disposing)
        {
            if (_instance.Base == null)
            {
                return;
            }

            CefNativeApi.cef_string_map_clear(_instance);
            CefNativeApi.cef_string_map_free(_instance);
            _instance = default;
        }
Exemple #3
0
 private CefStringMap(cef_string_map_t instance)
 {
     _instance = instance;
 }
Exemple #4
0
 /// <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);
 }