Query Expressions
Instead of using Lamba Expressions
string[] words = { "one", "four", "seven" };
The following query extracts all words that contain the letter "o".
IEnumerable<string> filteredWords = from n in words
where n.Contains("o")
select n;
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext