• Home
  • Blog
  • Docs
  • GitHub
Show / Hide Table of Contents

Interface IConfigurationTransformer<TOutput>

Transforms a tree of IAbstractConfigurationNode into a concrete representation.

Although also used for serialization, TOutput does not need to be an opaque serialized type such as System.String or a System.Byte[], but could also be a configuration object that is less unwieldy to use than a full IConfigurationCollection<T>.

Namespace: Snowflake.Configuration.Serialization
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IConfigurationTransformer<TOutput>
Type Parameters
Name Description
TOutput

The concrete representation resulting from a traversal of the syntax tree the provided IAbstractConfigurationNode represents.

Methods

Transform(IAbstractConfigurationNode)

Transforms a tree of IAbstractConfigurationNode into a concrete representation.

See implementation assemblies for the set of node types that should be handled through recursive descent.

Declaration
TOutput Transform(IAbstractConfigurationNode node)
Parameters
Type Name Description
IAbstractConfigurationNode node

The root node of the syntax tree.

Returns
Type Description
TOutput

The transformed output of the syntax tree.

Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.