Coolest C# LINQ/Lambdas trick you've ever pulled?

后端 未结 14 1408
死守一世寂寞
死守一世寂寞 2020-12-22 17:00

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

What\'s the coolest (as in the most

相关标签:
14条回答
  • 2020-12-22 18:05

    By far the most impressive Linq implementation i've ever come across is the Brahma framework.

    It can be used to offload parallel calculations to the GPU using 'Linq to GPU'. You write a 'query' in linq, and then Brahma translates it into HLSL (High Level Shader Language) so DirectX can process it on the GPU.

    This site will only let me paste one link so try this webcast from dotnetrocks:

    http://www.dotnetrocks.com/default.aspx?showNum=466

    Else google for Brahma Project, you'll get the right pages.

    Extremely cool stuff.

    GJ

    0 讨论(0)
  • 2020-12-22 18:06

    Actually, I'm quite proud of this for generating Excel docments: http://www.aaron-powell.com/linq-to-xml-to-excel

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