C# Class KellermanSoftware.CompareNetObjects.TypeComparers.DateComparer

Compare dates with the option to ignore based on milliseconds
Inheritance: BaseTypeComparer
ファイルを表示 Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CompareType ( CompareParms parms ) : void

Compare two DateTime variables

DateComparer ( RootComparer rootComparer ) : System

Constructor that takes a root comparer

IsTypeMatch ( Type type1, Type type2 ) : bool

Returns true if both types are DateTime

Method Details

CompareType() public method

Compare two DateTime variables
public CompareType ( CompareParms parms ) : void
parms CompareParms
return void

DateComparer() public method

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

IsTypeMatch() public method

Returns true if both types are DateTime
public IsTypeMatch ( Type type1, Type type2 ) : bool
type1 System.Type
type2 System.Type
return bool