Show / Hide Table of Contents

Interface TomlSettings.IPropertyMappingBuilder

Namespace: Nett
Assembly: Nett.dll
Syntax
public interface IPropertyMappingBuilder

Methods

| Improve this Doc View Source

UseKeyGenerator(IKeyGenerator)

Use a custom key generator implementation for these settings.

Declaration
TomlSettings.IPropertyMappingBuilder UseKeyGenerator(IKeyGenerator generator)
Parameters
Type Name Description
IKeyGenerator generator

Custom key generator implementation.

Returns
Type Description
TomlSettings.IPropertyMappingBuilder

Fluent configuration builder continuation object.

Exceptions
Type Condition
System.ArgumentNullException

If generator is null.

| Improve this Doc View Source

UseKeyGenerator(Func<KeyGenerators, IKeyGenerator>)

Choose which standard key generator implementation to use for these settings.

Declaration
TomlSettings.IPropertyMappingBuilder UseKeyGenerator(Func<KeyGenerators, IKeyGenerator> standardGenerators)
Parameters
Type Name Description
System.Func<KeyGenerators, IKeyGenerator> standardGenerators

Lamba which's parameter allows to choose one of the standard selectors.

Returns
Type Description
TomlSettings.IPropertyMappingBuilder

Fluent configuration builder continuation object.

Exceptions
Type Condition
System.ArgumentNullException

If standardGenerators is null.

| Improve this Doc View Source

UseTargetPropertySelector(ITargetPropertySelector)

Use a custom target property selector implementation for these settings.

Declaration
TomlSettings.IPropertyMappingBuilder UseTargetPropertySelector(ITargetPropertySelector custom)
Parameters
Type Name Description
ITargetPropertySelector custom

Custom target selector implementation.

Returns
Type Description
TomlSettings.IPropertyMappingBuilder

Fluent configuration builder continuation object.

Exceptions
Type Condition
System.ArgumentNullException

If custom is null.

| Improve this Doc View Source

UseTargetPropertySelector(Func<TargetPropertySelectors, ITargetPropertySelector>)

Choose which standard selector implementation to use for these settings.

Declaration
TomlSettings.IPropertyMappingBuilder UseTargetPropertySelector(Func<TargetPropertySelectors, ITargetPropertySelector> standardSelectors)
Parameters
Type Name Description
System.Func<TargetPropertySelectors, ITargetPropertySelector> standardSelectors

Lamba which's parameter allows to choose one of the standard selectors.

Returns
Type Description
TomlSettings.IPropertyMappingBuilder

Fluent configuration builder continuation object.

Exceptions
Type Condition
System.ArgumentNullException

If standardSelectors is null.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX