C# 클래스 StatePrinting.Configurations.Configuration

The configuration for the object printer.
파일 보기 프로젝트 열기: kbilsted/StatePrinter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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