Exemplo n.º 1
0
        //UPDATE
        //-------------------------------------------------------------------------------------------
        /// <summary>
        /// Sorts the collection based on a given property and direction
        /// </summary>
        /// <param name="sortParameter"></param>
        /// <param name="sortDirection"></param>
        /// <returns></returns>
        public DifferenceCollection Sort(string sortParameter, SortDirection sortDirection)
        {
            ArrayList        sortList = (ArrayList)this.InnerList.Clone();
            CollectionSorter cs       = new CollectionSorter(sortParameter, sortDirection);

            sortList.Sort(cs);

            //UPDATE
            return(new DifferenceCollection(sortList));
        }
Exemplo n.º 2
0
        //UPDATE
        //-------------------------------------------------------------------------------------------
        /// <summary>
        /// Sorts the collection based on a given property and direction
        /// </summary>
        /// <param name="sortParameter"></param>
        /// <param name="sortDirection"></param>
        /// <returns></returns>
        public new TableDifferenceCollection Sort(string sortParameter, SortDirection sortDirection)
        {
            ArrayList sortList = (ArrayList)this.InnerList.Clone();
            CollectionSorter cs = new CollectionSorter(sortParameter, sortDirection);
            sortList.Sort(cs);

            //UPDATE
            return new TableDifferenceCollection(sortList);
        }