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) [...] [read more...]
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 existing job definition, named “Change Log” SPWebApplication spWebApplication = SPContext.Current.Site.WebApplication; var jobs = spWebApplication.JobDefinitions.Where(x => x.Title == "Change Log"); foreach(SPJobDefinition job in [...] [read more...]
English 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 [...] [read more...]
Recent Comments