枚举命名规范同类,示例如下:
~~~
/// <summary>
/// 用户排序
/// </summary>
public enum UserOrderBy
{
/// <summary>
/// 创建时间正序
/// </summary>
[Display(Name = "创建时间正序")]
CreationTime,
/// <summary>
/// 创建时间倒序
/// </summary>
[Display(Name = "创建时间倒序")]
CreationTimeDesc,
/// <summary>
/// 最后登录时间正序
/// </summary>
[Display(Name = "最后登录时间正序")]
LastLoginTime,
/// <summary>
/// 最后登录时间倒序
/// </summary>
[Display(Name = "最后登录时间倒序")]
LastLoginTimeDesc
}
~~~