Free cookie consent management tool by TermsFeed Policy Generator

Changeset 60


Ignore:
Timestamp:
03/11/08 18:26:52 (17 years ago)
Author:
mkofler
Message:

Ticket #51: Added wrappers for Find, FindIndex, Sort and Reverse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/ItemList_T.cs

    r53 r60  
    147147    }
    148148
     149    public T Find(Predicate<T> match) {
     150      return list.Find(match);
     151    }
     152
    149153    public List<T> FindAll(Predicate<T> match) {
    150154      return list.FindAll(match);
     155    }
     156
     157    public int FindIndex(Predicate<T> match) {
     158      return list.FindIndex(match);
     159    }
     160
     161    public void Sort() {
     162      list.Sort();
     163    }
     164
     165    public void Sort(IComparer<T> comparer) {
     166      list.Sort(comparer);
     167    }
     168
     169    public void Sort(Comparison<T> comparison) {
     170      list.Sort(comparison);
     171    }   
     172
     173    public void Reverse() {
     174     list.Reverse();
    151175    }
    152176    #endregion
Note: See TracChangeset for help on using the changeset viewer.