C# Класс StatePrinting.Configurations.Configuration

The configuration for the object printer.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Culture System.Globalization.CultureInfo
FactoryFileRepository Func
OutputFormatter IOutputFormatter

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Projectionharvester ( ) : ProjectionHarvester
SetAreEqualsMethod ( TestFrameworkAreEqualsMethod areEqualsMethod ) : Configuration
SetAutomaticTestRewrite ( TestingBehaviour indicator ) : Configuration

Описание методов

Add() публичный Метод

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
Результат Configuration

Add() публичный Метод

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
Результат Configuration

Configuration() публичный Метод

Instantiate using the DefaultIndention and the CurlyBraceStyle
public Configuration ( string indentIncrement = DefaultIndention, TestFrameworkAreEqualsMethod areEqualsMethod = null ) : System
indentIncrement string
areEqualsMethod TestFrameworkAreEqualsMethod
Результат System

SetCulture() публичный Метод

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetCulture ( CultureInfo culture ) : Configuration
culture System.Globalization.CultureInfo
Результат Configuration

SetIndentIncrement() публичный Метод

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetIndentIncrement ( string indention ) : Configuration
indention string
Результат Configuration

SetNewlineDefinition() публичный Метод

Set the definition of the newline. The default configuration is a Environment.NewLine
public SetNewlineDefinition ( string newlineCharacters ) : Configuration
newlineCharacters string
Результат Configuration

SetOutputFormatter() публичный Метод

public SetOutputFormatter ( IOutputFormatter formatter ) : Configuration
formatter IOutputFormatter
Результат Configuration

TryGetFieldHarvester() публичный Метод

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
Результат bool

TryGetValueConverter() публичный Метод

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
Результат bool

Описание свойств

Culture публичное свойство

The culture to use when generating string output
public CultureInfo,System.Globalization Culture
Результат System.Globalization.CultureInfo

FactoryFileRepository публичное свойство

public Func FactoryFileRepository
Результат Func

OutputFormatter публичное свойство

Defines how the output is formatted.
public IOutputFormatter OutputFormatter
Результат IOutputFormatter