C# Class Regul.S3PI.Interfaces.AApiVersionedFields.Comparer

A class enabling sorting API objects by a ContentFields name
Inheritance: IComparer
显示文件 Open project: Onebeld/Regul

Public Methods

Method Description
Compare ( x, y ) : int

Compares two objects of type T and returns a value indicating whether one is less than, equal to, or greater than the other.

Comparer ( string field ) : System

Sort API Objects by field

Method Details

Compare() public method

Compares two objects of type T and returns a value indicating whether one is less than, equal to, or greater than the other.
public Compare ( x, y ) : int
x The first IContentFields object to compare.
y The second IContentFields object to compare.
return int

Comparer() public method

Sort API Objects by field
public Comparer ( string field ) : System
field string ContentField name to sort by
return System