C# Class PetShop.Business.EntityPropertyComparer

Provide a generic comparer for our entity objects.
Inheritance: IComparer
Afficher le fichier Open project: netTiers/netTiers Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat int

EntityPropertyComparer() public méthode

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