C# Class KellermanSoftware.CompareNetObjects.TypeComparers.IpEndPointComparer

Logic to compare two IP End Points
Inheritance: BaseTypeComparer
Mostra file Open project: GregFinzer/Compare-Net-Objects

Public Methods

Method Description
CompareType ( CompareParms parms ) : void

Compare two IP End Points

IpEndPointComparer ( RootComparer rootComparer ) : System

Constructor that takes a root comparer

IsTypeMatch ( Type type1, Type type2 ) : bool

Returns true if both objects are an IP End Point

Private Methods

Method Description
CompareAddress ( CompareParms parms, IPEndPoint ipEndPoint1, IPEndPoint ipEndPoint2 ) : void
ComparePort ( CompareParms parms, IPEndPoint ipEndPoint1, IPEndPoint ipEndPoint2 ) : void

Method Details

CompareType() public method

Compare two IP End Points
public CompareType ( CompareParms parms ) : void
parms CompareParms
return void

IpEndPointComparer() public method

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

IsTypeMatch() public method

Returns true if both objects are an IP End Point
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