C# Class Bamboo.Prevalence.Collections.ObjectPropertyComparer

Compares objects by property (the property value must be IComparable).
Inheritance: IComparer
Datei anzeigen Open project: bamboo/Bamboo.Prevalence

Public Methods

Method Description
Compare ( object lhs, object rhs ) : int
ObjectPropertyComparer ( PropertyInfo property ) : System
ObjectPropertyComparer ( Type objectType, string propertyName ) : System

Method Details

Compare() public method

public Compare ( object lhs, object rhs ) : int
lhs object
rhs object
return int

ObjectPropertyComparer() public method

public ObjectPropertyComparer ( PropertyInfo property ) : System
property System.Reflection.PropertyInfo
return System

ObjectPropertyComparer() public method

public ObjectPropertyComparer ( Type objectType, string propertyName ) : System
objectType System.Type
propertyName string
return System