Class ConfigurationSectionExtensions
- Namespace
- GroupeIsa.Neos.Shared.Extensions
- Assembly
- GroupeIsa.Neos.Shared.dll
Provides extensions methods for the IConfigurationSection type.
public static class ConfigurationSectionExtensions
- Inheritance
-
ConfigurationSectionExtensions
- Inherited Members
Methods
ToYaml(IConfigurationSection, int, bool)
Converts the IConfigurationSection to a YAML string.
public static string ToYaml(this IConfigurationSection section, int globalIndentation = 0, bool includeSectionKey = true)
Parameters
section
IConfigurationSectionThe section to convert to YAML.
globalIndentation
intThe global indentation of the result.
includeSectionKey
boolWhether to include the section key in the result.
Returns
- string
The YAML representation of the IConfigurationSection.