private void ReadFrom(Stream inputStream) { try { ctSettings = SettingsDocument.Parse(inputStream).Settings; } catch (Exception e) { throw new Exception("SettingsDocument parse failed", e); } }
private void ReadFrom(Stream inputStream) { try { XmlDocument xmldoc = ConvertStreamToXml(inputStream); ctSettings = SettingsDocument.Parse(xmldoc, NamespaceManager).Settings; } catch (Exception e) { throw new Exception("SettingsDocument parse failed", e); } }