C# 클래스 TFSExp.ExtendedMerge.MyListViewSorter

Custom comparer for Listview items for different columns and types: string, number, date. See ListViewItemTag for compared fields list.
상속: IComparer
파일 보기 프로젝트 열기: mirik123/tfsprod

공개 메소드들

메소드 설명
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.

메소드 상세

Compare() 공개 메소드

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.
리턴 int

Compare() 공개 메소드

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.
리턴 int

MyListViewSorter() 공개 메소드

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

MyListViewSorter() 공개 메소드

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 .
리턴 System