Interface TomlSettings.IPropertyMappingBuilder
Namespace: Nett
Assembly: Nett.dll
Syntax
public interface IPropertyMappingBuilder
Methods
| Improve this Doc View SourceUseKeyGenerator(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 |
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 |
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 |
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 |