smd*_*ger 42
.NET中有超过8个排序枚举.它表明,即使在微软工程师将重新发明轮子.同样有趣的是评论实践和代码风格各不相同.
以下是我发现的:
System.ComponentModel.ListSortDirection
public enum ListSortDirection {
/// <devdoc>
/// <para>Sort in ascending order.</para>
/// </devdoc>
Ascending,
/// <devdoc>
/// <para>Sort in descending order.</para>
/// </devdoc>
Descending
}
Run Code Online (Sandbox Code Playgroud)System.Data.SqlClient.SortOrder
public enum SortOrder {
Unspecified = -1,
Ascending = 0,
Descending = 1
}
Run Code Online (Sandbox Code Playgroud)System.Data.Linq.SqlClient.SqlOrderType
internal enum SqlOrderType {
Ascending,
Descending
}
Run Code Online (Sandbox Code Playgroud)System.DirectoryServices.SortDirection
public enum SortDirection
{
//
// Summary:
// Sort from smallest to largest. For example, A to Z.
Ascending,
//
// Summary:
// Sort from largest to smallest. For example, Z to A.
Descending
}
Run Code Online (Sandbox Code Playgroud)System.Windows.Forms.SortOrder
/// <include file='doc\SortOrder.uex' path='docs/doc[@for="SortOrder"]/*' />
/// <devdoc>
/// <para>
/// Specifies how items in
/// a list are sorted.
/// </para>
/// </devdoc>
public enum SortOrder {
/// <include file='doc\SortOrder.uex' path='docs/doc[@for="SortOrder.None"]/*' />
/// <devdoc>
/// <para>
/// The items are
/// not sorted.
/// </para>
/// </devdoc>
None = 0,
/// <include file='doc\SortOrder.uex' path='docs/doc[@for="SortOrder.Ascending"]/*' />
/// <devdoc>
/// <para>
/// The items
/// are sorted in ascending order.
/// </para>
/// </devdoc>
Ascending = 1,
/// <include file='doc\SortOrder.uex' path='docs/doc[@for="SortOrder.Descending"]/*' />
/// <devdoc>
/// <para>
/// The items are
/// sorted in descending order.
/// </para>
/// </devdoc>
Descending = 2,
}
Run Code Online (Sandbox Code Playgroud)System.Web.Helpers.SortDirection
public enum SortDirection {
Ascending,
Descending
}
Run Code Online (Sandbox Code Playgroud)System.Web.UI.WebControls.SortDirection
public enum SortDirection {
Ascending = 0,
Descending = 1
}
Run Code Online (Sandbox Code Playgroud)public enum XmlSortOrder {
Ascending = 1,
Descending = 2,
}
Run Code Online (Sandbox Code Playgroud)System.Data.Common.EntitySql.AST.OrderKind
/// <summary>
/// Represents order kind (none=asc,asc,desc).
/// </summary>
internal enum OrderKind
{
None,
Asc,
Desc
}
Run Code Online (Sandbox Code Playgroud)编辑:另一个已经到了,因为这是最初发布的.
System.Web.UI.DataVisualization.Charting
/// <summary>
/// Sorting order (Ascending or Descending).
/// </summary>
public enum PointSortOrder
{
/// <summary>
/// Ascending sorting order
/// </summary>
Ascending,
/// <summary>
/// Descending sorting order
/// </summary>
Descending
}
Run Code Online (Sandbox Code Playgroud)And*_*ahl 32
归档时间: |
|
查看次数: |
11418 次 |
最近记录: |