Monthly Archives: July 2009

Howto: Use lambda expression in SharePoint – Working with SPWeb

English Before you continue reading this post, I hope you have read the basic task to start using lambda expression in SOM here. A.  Find any Event list in site. SPWeb spWeb = SPContext.Current.Web var lists = spWeb.Lists.OfType<SPList>().Where(              l => l.BaseTemplate == SPListTemplateType.Events);   foreach (SPList list in lists) {        Console.WriteLine("{0} {1}", list.BaseTemplate.ToString(),… Read More »