C# Class KellermanSoftware.CompareNetObjects.TypeComparers.StringComparer

Compare two strings
Inheritance: BaseTypeComparer
显示文件 Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CompareType ( CompareParms parms ) : void

Compare two strings

IsTypeMatch ( Type type1, Type type2 ) : bool

Returns true if both objects are a string or if one is a string and one is a a null

StringComparer ( RootComparer rootComparer ) : System

Constructor that takes a root comparer

Private Methods

Method Description
OneOfTheStringsIsNull ( CompareParms parms ) : bool

Method Details

CompareType() public method

Compare two strings
public CompareType ( CompareParms parms ) : void
parms CompareParms
return void

IsTypeMatch() public method

Returns true if both objects are a string or if one is a string and one is a a null
public IsTypeMatch ( Type type1, Type type2 ) : bool
type1 System.Type The type of the first object
type2 System.Type The type of the second object
return bool

StringComparer() public method

Constructor that takes a root comparer
public StringComparer ( RootComparer rootComparer ) : System
rootComparer RootComparer
return System