C#: Is it possible to return an IOrderedEnumerable?

后端 未结 1 1831
梦毁少年i
梦毁少年i 2021-01-18 10:37

Is it possible to return an IOrderedEnumerable from a method without using the OrderBy or OrderByDescending methods on an

1条回答
  •  北海茫月
    2021-01-18 11:21

    Well, you can implement IOrderedEnumerable yourself if you want too... it's not hugely hard, depending on what you need to do. The easiest option is just to call OrderBy/OrderByDescending though :)

    Why are you interested?

    0 讨论(0)
提交回复
热议问题