Lambda expressions - syntax in X# ?

This forum is meant for questions and discussions about the X# language and tools
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Lambda expressions - syntax in X# ?

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Phil Hepburn
Posts: 743
Joined: Sun Sep 11, 2016 2:16 pm

Lambda expressions - syntax in X# ?

Post 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 191 times
LINQclarity_02.jpg
LINQclarity_02.jpg (32.71 KiB) Viewed 191 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.
Post Reply