Linq / Lambda表达式中推荐了多少行代码? [英] How many lines of code recommended in a Linq/Lambda expression?

查看:83
本文介绍了Linq / Lambda表达式中推荐了多少行代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

理想情况下,应该在Linq / Lambda表达式中写入多少行代码(max)?







谢谢!

Ideally, how many lines of code (max) should be written in a Linq/Lambda expression?



Thanks!

推荐答案

为了保持函数式编程的温暖和模糊性,您的代码应该只有它所需的大小,或者换句话说,你的linq表达应该尽可能简洁。如果不是,请将其拆分为多个表达式。



ATG
In keeping with the warmth and fuzziness of functional programming, your code should be only as large as it needs to be, or in other words your linq expression should be as succinct as possible. If it isn''t, split it up into a number of expressions.

ATG


https://www.simple-talk.com/dotnet/.net-framework/using-linq-lambda-expressions-to -design-customizable-generic-components / [ ^ ]



http://msdn.microsoft.com/en-us/library/bb397687.aspx [ ^ ]



LINQ& amp; Lamda表达式 [ ^ ]





http://devproconnections.com/database-development/guidelines-and-best-practices-optimizing-linq-performance [ ^ ]



http://blogs.msdn.com/b/vbteam/archive/2008/05/15/linq-deep-dive-and-best-practices-presentation-materials-lisa-feigenbaum.aspx [ ^ ]



http://msdn.microsoft.com/en-us/data/ff728653.aspx [ ^ ]



希望此链接能够指导你正确......
https://www.simple-talk.com/dotnet/.net-framework/using-linq-lambda-expressions-to-design-customizable-generic-components/[^]

http://msdn.microsoft.com/en-us/library/bb397687.aspx[^]

Basics of LINQ & Lamda Expressions[^]


http://devproconnections.com/database-development/guidelines-and-best-practices-optimizing-linq-performance[^]

http://blogs.msdn.com/b/vbteam/archive/2008/05/15/linq-deep-dive-and-best-practices-presentation-materials-lisa-feigenbaum.aspx[^]

http://msdn.microsoft.com/en-us/data/ff728653.aspx[^]

Hope this links will guide you properly...


这篇关于Linq / Lambda表达式中推荐了多少行代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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