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

后端 未结 14 1475
死守一世寂寞
死守一世寂寞 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

提交回复
热议问题