C# Class KellermanSoftware.CompareNetObjects.TypeComparers.BaseComparer

Common functionality for all Comparers
Exibir arquivo Open project: GregFinzer/Compare-Net-Objects

Protected Methods

Method Description
AddBreadCrumb ( ComparisonConfig config, string existing, string name ) : string

Add a breadcrumb to an existing breadcrumb

AddBreadCrumb ( ComparisonConfig config, string existing, string name, string extra, int index ) : string

Add a breadcrumb to an existing breadcrumb

AddBreadCrumb ( ComparisonConfig config, string existing, string name, string extra, string index ) : string

Add a breadcrumb to an existing breadcrumb

AddDifference ( CompareParms parameters ) : void

Add a difference for the current parameters

AddDifference ( ComparisonResult result, Difference difference ) : void

Add a difference to the result

NiceString ( object value ) : string

Convert an object to a nicely formatted string

Method Details

AddBreadCrumb() protected method

Add a breadcrumb to an existing breadcrumb
protected AddBreadCrumb ( ComparisonConfig config, string existing, string name ) : string
config ComparisonConfig Comparison configuration
existing string The existing breadcrumb
name string The field or property name
return string

AddBreadCrumb() protected method

Add a breadcrumb to an existing breadcrumb
protected AddBreadCrumb ( ComparisonConfig config, string existing, string name, string extra, int index ) : string
config ComparisonConfig The comparison configuration
existing string The existing breadcrumb
name string The property or field name
extra string Extra information to output after the name
index int The index for an array, list, or row
return string

AddBreadCrumb() protected method

Add a breadcrumb to an existing breadcrumb
protected AddBreadCrumb ( ComparisonConfig config, string existing, string name, string extra, string index ) : string
config ComparisonConfig Comparison configuration
existing string The existing breadcrumb
name string The field or property name
extra string Extra information to append after the name
index string The index if it is an array, list, row etc.
return string

AddDifference() protected method

Add a difference for the current parameters
protected AddDifference ( CompareParms parameters ) : void
parameters CompareParms
return void

AddDifference() protected method

Add a difference to the result
protected AddDifference ( ComparisonResult result, Difference difference ) : void
result ComparisonResult The comparison result
difference Difference The difference to add to the result
return void

NiceString() protected method

Convert an object to a nicely formatted string
protected NiceString ( object value ) : string
value object
return string