Joutsen v0.5.0+18-g5fdf104
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Joutsen.Configuration.ConfigurationSectionExtensions Class Reference

Extension methods to IConfigurationSection. More...

Static Public Member Functions

static global::System.Collections.Generic.IEnumerable< IConfigurationSection > GetChildren (this IConfigurationSection section, string key)
 Fetch children in a way that works for JSON and XML configurations.
 

Detailed Description

Extension methods to IConfigurationSection.

Since
0.5.0

Member Function Documentation

◆ GetChildren()

static global.System.Collections.Generic.IEnumerable< IConfigurationSection > Joutsen.Configuration.ConfigurationSectionExtensions.GetChildren ( this IConfigurationSection  section,
string  key 
)
static

Fetch children in a way that works for JSON and XML configurations.

Parameters
sectionthe section whose children are to be fetched
keythe name of the element in xml configurations
Returns
the children of the section
Remarks
This method only works for xml structures that contain elements of the same name.