C# Class TFSExp.ExtendedMerge.MyListViewSorter

Custom comparer for Listview items for different columns and types: string, number, date. See ListViewItemTag for compared fields list.
Inheritance: IComparer
Afficher le fichier Open project: mirik123/tfsprod

Méthodes publiques

Méthode Description
Compare ( System.Windows.Forms.ListViewItem x, System.Windows.Forms.ListViewItem y ) : int

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. Optimized for ListViewItem objects.

Compare ( object x, object y ) : int

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

MyListViewSorter ( ) : System

Initializes a new instance of the MyListViewSorter class.

MyListViewSorter ( int coll, SortOrder sort ) : System

Initializes a new instance of the MyListViewSorter class.

Method Details

Compare() public méthode

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. Optimized for ListViewItem objects.
Neither nor implements the interface.-or- and are of different types and neither one can handle comparisons with the other.
public Compare ( System.Windows.Forms.ListViewItem x, System.Windows.Forms.ListViewItem y ) : int
x System.Windows.Forms.ListViewItem The first object to compare.
y System.Windows.Forms.ListViewItem The second object to compare.
Résultat int

Compare() public méthode

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Neither nor implements the interface.-or- and are of different types and neither one can handle comparisons with the other.
public Compare ( object x, object y ) : int
x object The first object to compare.
y object The second object to compare.
Résultat int

MyListViewSorter() public méthode

Initializes a new instance of the MyListViewSorter class.
public MyListViewSorter ( ) : System
Résultat System

MyListViewSorter() public méthode

Initializes a new instance of the MyListViewSorter class.
public MyListViewSorter ( int coll, SortOrder sort ) : System
coll int The collumn number
sort SortOrder The sort order, see .
Résultat System