Table of Contents

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 IConfigurationSection

The section to convert to YAML.

globalIndentation int

The global indentation of the result.

includeSectionKey bool

Whether to include the section key in the result.

Returns

string

The YAML representation of the IConfigurationSection.