Exemplo n.º 1
0
 private static Browser GetBrowser(XPathNavigator objNav)
 {
     Browser objBrowser = new Browser();
     objBrowser.Contains = objNav.GetAttribute("contains", "");
     objBrowser.Name = objNav.GetAttribute("nm", "");
     string strMinVersion = objNav.GetAttribute("minversion", "");
     //If Not String.IsNullOrEmpty(strMinVersion) Then    '.NET 2.0 specific
     // HACK : Modified to not error if object is null.
     //if (strMinVersion.Length > 0)
     if (!String.IsNullOrEmpty(strMinVersion))
     {
         objBrowser.MinVersion = double.Parse(strMinVersion);
     }
     return objBrowser;
 }
Exemplo n.º 2
0
 public void Add(Browser b)
 {
     this.InnerList.Add(b);
 }