Пример #1
0
 internal IEnumerable <IConfigurationSection> GetChildrenImplementation(string i_Path)
 {
     return(r_Providers.Aggregate(Enumerable.Empty <string>(), (i_Seed, i_Source) => i_Source.GetChildKeys(i_Seed, i_Path)).Distinct()
            .Select(i_Key => GetSection(i_Path == null ? i_Key : ConfigurationPath.Combine(i_Path, i_Key))));
 }
Пример #2
0
 /// <summary>
 /// Gets a configuration sub-section with the specified key.
 /// </summary>
 /// <param name="i_Key">The key of the configuration section.</param>
 /// <returns>The <see cref="IConfigurationSection"/>.</returns>
 /// <remarks>
 ///     This method will never return <c>null</c>. If no matching sub-section is found with the specified key,
 ///     an empty <see cref="IConfigurationSection"/> will be returned.
 /// </remarks>
 public IConfigurationSection GetSection(string i_Key) => r_Root.GetSection(ConfigurationPath.Combine(Path, i_Key));