News for hackers. Stuff that matters.
Re:Net 9.0 LINQ Performance Improvements by apwell23 on Friday October 18, 2024 @09:54AM (#41879493)
> But yea, it is LINQ method chaining.

You mean like fluent interface? https://en.wikipedia.org/wiki/Fluent_interface

What does this have to do with LINQ or C#. I remember doing 'method chaining' in 1990s .

Re:Net 9.0 LINQ Performance Improvements by high_na_euv on Friday October 18, 2024 @09:57AM (#41879518)
>fluent interface

Various names, same concept.

"fluent interface is an object-oriented API whose design relies extensively on method chaining."

>What does this have to do with LINQ or C#.

Check the name of the namespace where all those APIs like Where, GroupBy, etc. are implemented, it is "System.Linq"

So thats why majority of ppl think about them when talking about LINQ.

Query syntax has like less than 1% of the "market share" versus method chaining style