C# Class StatePrinting.Configurations.Configuration

The configuration for the object printer.
Show file Open project: kbilsted/StatePrinter Class Usage Examples

Public Properties

Property Type Description
Culture System.Globalization.CultureInfo
FactoryFileRepository Func
OutputFormatter IOutputFormatter

Public Methods

Method Description
Add ( IFieldHarvester handler ) : Configuration

Add a configuration. Adding will override the existing behaviour only when the added handler handles a type that is already handleable by the current configuration.

Add ( IValueConverter handler ) : Configuration

Add a configuration. Adding will override the existing behaviour only when the added handler handles a type that is already handleable by the current configuration.

Configuration ( string indentIncrement = DefaultIndention, TestFrameworkAreEqualsMethod areEqualsMethod = null ) : System

Instantiate using the DefaultIndention and the CurlyBraceStyle

SetCulture ( CultureInfo culture ) : Configuration

Set the definition of the newline. The default configuration is a Environment.NewLine

SetIndentIncrement ( string indention ) : Configuration

Set the definition of the newline. The default configuration is a Environment.NewLine

SetNewlineDefinition ( string newlineCharacters ) : Configuration

Set the definition of the newline. The default configuration is a Environment.NewLine

SetOutputFormatter ( IOutputFormatter formatter ) : Configuration
TryGetFieldHarvester ( Type source, IFieldHarvester &result ) : bool

Find a handler for the type. Handlers are examined in the reverse order of adding and the first match is returned.

TryGetValueConverter ( Type source, IValueConverter &result ) : bool

Find a handler for the type. Handlers are examined in the reverse order of adding and the first match is returned.

Private Methods

Method Description
Projectionharvester ( ) : ProjectionHarvester
SetAreEqualsMethod ( TestFrameworkAreEqualsMethod areEqualsMethod ) : Configuration
SetAutomaticTestRewrite ( TestingBehaviour indicator ) : Configuration

Method Details

Add() public method

Add a configuration. Adding will override the existing behaviour only when the added handler handles a type that is already handleable by the current configuration.
public Add ( IFieldHarvester handler ) : Configuration
handler IFieldHarvester
return Configuration

Add() public method

Add a configuration. Adding will override the existing behaviour only when the added handler handles a type that is already handleable by the current configuration.
public Add ( IValueConverter handler ) : Configuration
handler IValueConverter
return Configuration

Configuration() public method

Instantiate using the DefaultIndention and the CurlyBraceStyle
public Configuration ( string indentIncrement = DefaultIndention, TestFrameworkAreEqualsMethod areEqualsMethod = null ) : System
indentIncrement string
areEqualsMethod TestFrameworkAreEqualsMethod
return System

SetCulture() public method

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetCulture ( CultureInfo culture ) : Configuration
culture System.Globalization.CultureInfo
return Configuration

SetIndentIncrement() public method

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetIndentIncrement ( string indention ) : Configuration
indention string
return Configuration

SetNewlineDefinition() public method

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetNewlineDefinition ( string newlineCharacters ) : Configuration
newlineCharacters string
return Configuration

SetOutputFormatter() public method

public SetOutputFormatter ( IOutputFormatter formatter ) : Configuration
formatter IOutputFormatter
return Configuration

TryGetFieldHarvester() public method

Find a handler for the type. Handlers are examined in the reverse order of adding and the first match is returned.
public TryGetFieldHarvester ( Type source, IFieldHarvester &result ) : bool
source System.Type
result IFieldHarvester
return bool

TryGetValueConverter() public method

Find a handler for the type. Handlers are examined in the reverse order of adding and the first match is returned.
public TryGetValueConverter ( Type source, IValueConverter &result ) : bool
source System.Type
result IValueConverter
return bool

Property Details

Culture public property

The culture to use when generating string output
public CultureInfo,System.Globalization Culture
return System.Globalization.CultureInfo

FactoryFileRepository public property

public Func FactoryFileRepository
return Func

OutputFormatter public property

Defines how the output is formatted.
public IOutputFormatter OutputFormatter
return IOutputFormatter