Howto series : Lambda and SharePoint « Ideas for free - Sep 2, 2009[…] How to use lambda expression in SharePoint Object Model. 2. How to use lambda expression in SharePoint Object Model – working with WebApplication. 3. […]
Hey , Nice article !! . I am trying to write a lambda expression which can fetch all lists that are based on a particular content Type . as content type collection is an IEnumerable , not sure how to form the query .
Lambda expression has been introduced since .NET framework 3.5, it is an anonymous function that can contain statement and expression. For more understanding on lambda expression you can read directly in MSDN page here. I will assume that you have read the topic and you can remember the lambda simply as:
(input parameters ) => operation
We will start with very basic operation of using lambda expression in SOM, and I hope you’ll find your path for more complex one.