示例#1
0
        public static bool OrderMethodExists(Expression expression)
        {
            var visitor = new OrderingMethodFinder();

            visitor.Visit(expression);
            return(visitor._orderingMethodFound);
        }
 public static bool IsOrdered <T>(this IQueryable <T> queryable)
 {
     return(OrderingMethodFinder.OrderMethodExists(queryable.Expression));
 }