descending(C# 参考)

更新: 2008 年 7 月

descending 上下文关键字用在查询表达式的 orderby 子句中,用于指定从最大到最小的排序顺序。

示例

下面的示例演示 descending 在 orderby 子句中的用法。

IEnumerable<string> sortDescendingQuery =
    from vegetable in vegetables
    orderby vegetable descending
    select vegetable;

请参见

概念

LINQ 查询表达式(C# 编程指南)

参考

ascending(C# 参考)

其他资源

C# 参考

修订记录

日期

修订记录

原因

2008 年 7 月

新增主题。

信息补充。