示例#1
0
        public virtual void Sort()
        {
            if (sortcolumn == "")
            {
                throw new Exception("Sort column required.");
            }
            if (SortObjectType == null)
            {
                throw new Exception("Sort object type required.");
            }
            IGenericComparer sorter = new GenericComparer();

            sorter.ObjectType   = sortObjectType;
            sorter.SortColumn   = sortcolumn;
            sorter.SortingOrder = (int)sortingOrder;
            InnerList.Sort(sorter);
        }
 public virtual void Sort()
 {
     if(sortcolumn == "") throw new Exception("Sort column required.");
     if(SortObjectType == null) throw new Exception("Sort object type required.");
     IGenericComparer sorter = new GenericComparer();
     sorter.ObjectType = sortObjectType;
     sorter.SortColumn = sortcolumn;
     sorter.SortingOrder = (int)sortingOrder;
     InnerList.Sort(sorter);
 }