Exemple #1
0
        /// <summary>
        /// Sorts the index table using a sort criterion.
        /// </summary>
        /// <param name="crit">The sort criterion.</param>
        public void Sort(SortCriteria crit)
        {
            MyComparer myComparer = new MyComparer(_codeElementWrapperArray, crit);

            _list.Sort(myComparer);
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the MyComparer class.
 /// </summary>
 /// <param name="a">A CodeElementWrapperArray object.</param>
 /// <param name="s">A SortCriteria object.</param>
 public MyComparer(CodeElementWrapperArray a, SortCriteria s)
 {
     _sortArray = a;
     _criteria  = s;
 }