📄 collectionsortby.format
字号:
/// <summary>
/// Sorts a {0} by the property {1}.
/// </summary>
/// <param name="sortDirection">The direction to sort in</param>
/// <returns>The collection in sorted order</returns>
public {0}Collection SortBy{1} ( OrmLib.SortDirection sortDirection )
{
InnerList.Sort( new OrmLib.ObjectPropertyComparer("{1}"));
if (sortDirection == OrmLib.SortDirection.Descending) InnerList.Reverse();
return ({0}Collection)this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -