C# Class KellermanSoftware.CompareNetObjects.TypeComparers.DateTimeOffSetComparer

Compare DateTimeOffsets with the ability to ignore millisecond differences
Inheritance: BaseTypeComparer
显示文件 Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CompareType ( CompareParms parms ) : void

Compare two DateTimeOffset

DateTimeOffSetComparer ( RootComparer rootComparer ) : System

Constructor that takes a root comparer

IsTypeMatch ( Type type1, Type type2 ) : bool

Returns true if both types are DateTimeOffset

Method Details

CompareType() public method

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

DateTimeOffSetComparer() public method

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

IsTypeMatch() public method

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