Filtering and sorting any given list in LINQ is done by:
var results = csvList.Where(x => x.MyFilterField == "MyValue").OrderBy(x => x.Date).Select(x => x.MyTargetField);
Happy coding
C
The SharePoint Knowledge Collection of Cornelius J. van Dyk, an 9 x SharePoint MVP
Well, the time has finally come. It was evident when Microsoft started pushing everyone to WebHooks, but this FAQ and related announcement...
No comments:
Post a Comment
Comments are moderated only for the purpose of keeping pesky spammers at bay.