Exemple #1
0
 /// <summary>
 /// Loads the Taml data from a stream.
 /// </summary>
 /// <param name="stream">The stream to read.</param>
 public override void Load(Stream stream)
 {
     try
     {
         Data = TamlConfigurationFileParser.Parse(stream);
     }
     catch (Exception e)
     {
         throw new FormatException("TamlParseError", e);
     }
 }
Exemple #2
0
 /// <summary>
 /// Loads Taml configuration key/values from a stream into a provider.
 /// </summary>
 /// <param name="stream">The Taml <see cref="Stream"/> to load configuration data from.</param>
 public override void Load(Stream stream)
 {
     Data = TamlConfigurationFileParser.Parse(stream);
 }