有关何时不使用LINQ的示例 [英] Examples on when not to use LINQ

查看:87
本文介绍了有关何时不使用LINQ的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我读过的这个问题的跟进内容: 人们在做什么时最大的错误是什么开始使用LINQ?

This is sort of a follow up on this question I read: What is the biggest mistake people make when starting to use LINQ?

最高答案是应该将其用于所有内容".那让我想知道这到底是什么意思.

The top answer is "That it should be used for everything." That made me wonder what exactly that means.

当人们不应该使用LINQ时,有哪些常见示例?

What are some common examples where someone used LINQ when they should not have?

推荐答案

当替代方案更简单或更有效时,您不应该使用LINQ.

You shouldn't use LINQ when the alternative is simpler or significantly more efficient.

这篇关于有关何时不使用LINQ的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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