Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><a href="https://stackoverflow.com/questions/170772/where-can-i-find-a-good-in-depth-guide-to-c-3">Where can i find a good in depth guide to C# 3?</a></p> <p>1) Your knowledge so far seems ok. Lambda expressions are turned into anonymous methods or System.Linq.Expressions.Expression's, depending on context. Since you aren't using a database technology, you don't need to understand expressions (all lambdas will be anonymous methods). You didn't list Extension methods, but those are very important (and easy) to understand. Make sure you see how to apply an extension method to an interface - as all the functionality in linq comes from System.Linq.Enumerable - a collection of extention methods against IEnumerable(Of T).</p> <p>2) You don't need a deep understanding of lambdas.</p> <p>The arrow syntax ( => ) was the biggest hurdle for me. The arrow separates the signature and the body of the lambda expression.</p> <p>Always remember : <strong>Linq methods are not executed until enumerated.</strong></p> <p>Watch out for using <a href="https://stackoverflow.com/questions/295593/linq-query-built-in-foreach-loop-always-takes-parameter-value-from-last-iteration">loop variables in a lambda</a>. This is a side effect from deferred execution that is particularly tricky to track down.</p> <p>3) Sure, Here are some of my answers that show linq method calls - some with xml.</p> <ul> <li><a href="https://stackoverflow.com/questions/69748/split-a-list-feature-in-c-possibly-linq">List splitting</a></li> <li><a href="https://stackoverflow.com/questions/239951/how-to-determine-if-xelement-elements-contains-a-node-with-a-specific-name">Simple Xml existence search</a></li> <li><a href="https://stackoverflow.com/questions/425087/how-to-write-this-nested-linq-to-xml-query">Xml projection - shape change</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload