ascending(C# 参考)
查询表达式中的 orderby 子句 中使用 ascending
上下文关键字指定排序顺序为从小到大。 由于 ascending
为默认排序顺序,因此无需加以指定。
示例
下面的示例说明 ascending
在 orderby 子句中的用法。
IEnumerable<string> sortAscendingQuery =
from vegetable in vegetables
orderby vegetable ascending
select vegetable;
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈