by
3,709 14

Search TList with LINQ

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/518036/Search-TList-with-LINQ?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
TList<Global_AppValueList> TLMaritalCodes = new TList<Global_AppValueList>(); TLMaritalCodes = DataRepository.Global_AppValueListProvider.GetByListName("Marital"); // Check to see if this is a valid Marital Code because orig system had some oddities in the data var MaritalCodeMatched = from mc in TLMaritalCodes where mc.ListValue.Contains(pP.MaritalStatus.ToString()) select mc; TList<Global_AppValueList> TLFilteredList = new TList<Global_AppValueList>((IList)MaritalCodeMatched.ToList<Global_AppValueList>());
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus