本文介绍了OrderBy()。ToLisT()和ToList()之间有什么区别.QuickBy()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在接受采访时问了一个问题,即OrderBy()。ToLisT()和ToList()之间有什么区别.QuickBy()?我回答说使用第一个是性能开销,因为ToList强制要评估所有内容。但他并不同意我的论点,并要求我全面解释。能帮助我深入了解这些吗?



提前谢谢

Hi,

I happened to asked a question in interview that what is difference between OrderBy().ToLisT() and ToList().OrderBy()? I replied there is performance overhead using first one as ToList forces everything to be evaluated. But he didn't' agree with my argument and asked me to explain comprehensively. Can you please help me to understand these in depth ?

Thanks in advance

推荐答案


这篇关于OrderBy()。ToLisT()和ToList()之间有什么区别.QuickBy()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 18:47