Skip to content

KeyReplacementsBuilder

public sealed class KeyReplacementsBuilder

Namespace: RhoMicro.BindSight.Transformations

Inheritance:

Provides key replacements to KeyReplacementTransformation.

public KeyReplacementsBuilder(BindSightBuilder optionsDocs)

Provides key replacements to KeyReplacementTransformation.

public BindSightBuilder BindSight { get; }

Gets the wrapped options docs builder.

public KeyReplacementsBuilder Use(string key, string replacement)

Replaces keys prefixed with key with their prefix replaced by replacement.

NameTypeDescription
keyStringThe key prefix to replace.
replacementStringThe replacement prefix.

A reference to the builder, for chaining of further method calls.

public KeyReplacementsBuilder Use<TOptions>(string replacement)

Replaces keys prefixed with typeof(TOptions).Namewith their prefix replaced by replacement.

NameTypeDescription
replacementStringThe replacement prefix.

A reference to the builder, for chaining of further method calls.

public KeyReplacementsBuilder Clear()

Clears out all registered replacements.

A reference to the builder, for chaining of further method calls.

public KeyReplacementsBuilder UseDefaults()

Adds default replacements to the builder.

The following replacements will be added:

A reference to the builder, for chaining of further method calls.