internal static void AddToBrowserCache(ChromiumWebBrowserBase wb)
 {
     lock (browsers)
     {
         var deadRefs = new List <int>(browsers.Count);
         foreach (var b in browsers)
         {
             if (!b.Value.IsAlive)
             {
                 deadRefs.Add(b.Key);
             }
         }
         foreach (var r in deadRefs)
         {
             browsers.Remove(r);
         }
         browsers[wb.Browser.Identifier] = new WeakReference(wb);
     }
 }
 internal void ClearParent()
 {
     Name      = null;
     m_parent  = null;
     m_browser = null;
 }
 internal void SetBrowser(string propertyName, ChromiumWebBrowserBase browser)
 {
     CheckUnboundState();
     Name      = propertyName;
     m_browser = browser;
 }