public void Load() { var xmlSerializer = new XmlSerializer(typeof(BrowserConfig)); using (var xmlReader = XmlReader.Create(Constants.XmlFile)) { this.Config = (BrowserConfig)xmlSerializer.Deserialize(xmlReader); } }