示例#1
0
 private void ReadFrom(Stream inputStream)
 {
     try
     {
         ctSettings = SettingsDocument.Parse(inputStream).Settings;
     }
     catch (Exception e)
     {
         throw new Exception("SettingsDocument parse failed", e);
     }
 }
示例#2
0
 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);
     }
 }