C# Class KellermanSoftware.CompareNetObjects.TypeComparers.SimpleTypeComparer

Compare primitive types (long, int, short, byte etc.) and DateTime, decimal, and Guid
Inheritance: BaseTypeComparer
Show file Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CompareType ( CompareParms parms ) : void

Compare two simple types

IsTypeMatch ( Type type1, Type type2 ) : bool

Returns true if the type is a simple type

SimpleTypeComparer ( RootComparer rootComparer ) : System

Constructor that takes a root comparer

Method Details

CompareType() public method

Compare two simple types
public CompareType ( CompareParms parms ) : void
parms CompareParms
return void

IsTypeMatch() public method

Returns true if the type is a simple type
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

SimpleTypeComparer() public method

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