Exemple #1
0
        public static ListObjectComparer <T> FromSort <T>(ListSortDescriptionCollection sorts)
        {
            var comparers = sorts.Cast <ListSortDescription>()
                            .Select(MakeComparer <T>)
                            .ToList();

            return(new ListObjectComparer <T>(comparers));
        }
Exemple #2
0
 public void ApplySort(ListSortDescriptionCollection sorts)
 {
     ApplySortCore(sorts.Cast <ListSortDescription>());
 }