是否一个枚举存在的ASC或DESC在.NET订货? [英] Does an Enum exist for Asc or Desc ordering in .NET?

查看:158
本文介绍了是否一个枚举存在的ASC或DESC在.NET订货?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有原生的枚举在.NET中的ASC或DESC排序? 我需要使用排序的概念在不同的库,我想松耦合成为可能。

Is there an Enum natively in .NET for Asc or Desc ordering? I need to use the ordering concept in the different libraries, and I want loose coupling as possible.

推荐答案

  • SortOrder的在System.Data.SqlClient的
  • <一个href="http://msdn.microsoft.com/en-us/library/system.componentmodel.listsortdirection%28v=vs.71%29.aspx">ListSortDirection在System.ComponentModel

  • SortOrder in System.Data.SqlClient
  • ListSortDirection in System.ComponentModel
  • 这篇关于是否一个枚举存在的ASC或DESC在.NET订货?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆