C# Class KellermanSoftware.CompareNetObjects.TypeComparers.EnumComparer

Logic to compare to enum values
Inheritance: BaseTypeComparer
ファイルを表示 Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CompareType ( CompareParms parms ) : void

Compare two enums

EnumComparer ( RootComparer rootComparer ) : System

Constructor with a default root comparer

IsTypeMatch ( Type type1, Type type2 ) : bool

Returns true if both objects are of type enum

Method Details

CompareType() public method

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

EnumComparer() public method

Constructor with a default root comparer
public EnumComparer ( RootComparer rootComparer ) : System
rootComparer RootComparer
return System

IsTypeMatch() public method

Returns true if both objects are of type enum
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