最酷的C#LINQ / Lambda表达式招你曾经拉? [英] Coolest C# LINQ/Lambdas trick you've ever pulled?

查看:169
本文介绍了最酷的C#LINQ / Lambda表达式招你曾经拉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#中看到了一篇关于隐藏的功能,但不是很多人都写LINQ / lambda表达式的例子所以...我不知道...

Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder...

什么是你见过的最酷的(如最优雅的)使用C#LINQ和/或lambda表达式/匿名委托/写的?

What's the coolest (as in the most elegant) use of the C# LINQ and/or Lambdas/anonymous delegates you have ever saw/written?

奖金,如果它已经投产太

Bonus if it has went into production too!

推荐答案

LINQ光线跟踪上衣肯定我的名单= )

The LINQ Raytracer certainly tops my list =)

我不肯定是否有资格作为优雅,但它肯定是我见过最酷的LINQ表达!

I'm not quite sure if qualifies as elegant but it is most certainly the coolest linq-expression I've ever seen!

哦,只是要非常清楚;我做的的写(卢克·霍本一样)

Oh, and just to be extremely clear; I did not write it (Luke Hoban did)

这篇关于最酷的C#LINQ / Lambda表达式招你曾经拉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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