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
显示文件 Open project: mirik123/tfsprod

Public Methods

Method 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 method

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.
return int

Compare() public method

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.
return int

MyListViewSorter() public method

Initializes a new instance of the MyListViewSorter class.
public MyListViewSorter ( ) : System
return System

MyListViewSorter() public method

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 .
return System