Inheritance: System.Collections.CaseInsensitiveComparer
コード例 #1
0
        /// <summary>
        /// Class constructor.  Initializes various elements
        /// </summary>
        public ListViewColumnSorter()
        {
            // Initialize the column to '0'
            this.ColumnToSort = 0;

            // Initialize the sort order to 'none'
            //OrderOfSort = SortOrder.None;
            this.OrderOfSort = SortOrder.Ascending;

            // Initialize the CaseInsensitiveComparer object
            this.ObjectCompare = new NumberCaseInsensitiveComparer();//CaseInsensitiveComparer();
            this.FirstObjectCompare = new ImageTextComparer();
        }
コード例 #2
0
 public ImageTextComparer()
 {
     // Initialize the CaseInsensitiveComparer object
     this.ObjectCompare = new NumberCaseInsensitiveComparer();//CaseInsensitiveComparer();
 }