xsharp.eu • Lambda expressions - syntax in X# ? - Page 2
Page 2 of 2

Lambda expressions - syntax in X# ?

Posted: Wed Oct 19, 2016 12:46 pm
by wriedmann
Hi Nick,

thank you for your sample.

I may not yet ready for these things, learning to do programming the .NET way currently....

Wolfgang

Lambda expressions - syntax in X# ?

Posted: Wed Oct 19, 2016 4:06 pm
by Phil Hepburn
Hi Nick and all,

In fact we can combine method syntax and 'simple syntax' (sugary? syntax) to get the best out of both sides of LINQ technology.

As you say Nick this sort of code is much easier to follow and maintain. I attach a couple of snippets to illustrate your point. And to show some X# code and syntax.
LINQclarity_01.jpg
LINQclarity_01.jpg (14.25 KiB) Viewed 188 times
LINQclarity_02.jpg
LINQclarity_02.jpg (32.71 KiB) Viewed 188 times
Hope this helps in our quest to learn and move forward.

After all I would say that LINQ is now part of the .NET coding 'way' or approach.
Regards,
phil.