C# Class Nettiers.AdventureWorks.Entities.EntityPropertyComparer

Provide a generic comparer for our entity objects.
Inheritance: IComparer
Mostra file Open project: netTiers/netTiers Class Usage Examples

Public Methods

Method Description
Compare ( object x, object y ) : int

Compares 2 objects by their properties, given on the constructor

EntityPropertyComparer ( string propertyName ) : System

Provides Comparison opreations.

Method Details

Compare() public method

Compares 2 objects by their properties, given on the constructor
public Compare ( object x, object y ) : int
x object First value to compare
y object Second value to compare
return int

EntityPropertyComparer() public method

Provides Comparison opreations.
public EntityPropertyComparer ( string propertyName ) : System
propertyName string The property to compare
return System