Taking LINQ to Objects to Extremes: A fully LINQified RayTracer(blogs.msdn.com)

submitted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago

"Not too long ago I blogged about a C# raytracer which took advantage of a lot of C#3.0 language constructs. However, you may have noticed that it did not actually use LINQ query expressions all that much. Well, after discussing this with a coworker on the PLINQ team at lunch one day - I was convinced that it should be possible to express the logic of the raytracer in a LINQ to Objects query. The result is below - a single 60-line LINQ query which captures the complete raytracing algorithm."

1 comment |category: |Views: 67

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by JudahGabrielJudahGabriel(783) 4 years, 4 months ago 0

This shows off both the power and potential for abuse of LINQ queries.

Reply

information Login or create an account to comment on this story