R
Raj
Please observe the code snippet:
Func<String, int, bool> predicate = (str, index) => str.Length == index;
String[] words = { "orange", "apple", "Elephant", "Ant", "star",
"and" };
IEnumerable<String> aWords = words.Where(predicate).Select(str
=> str);
foreach (String word in aWords)
Console.WriteLine(word);
Courtesy: MSDN
How and where value for parameter index of predicate passed?
Thank you
Regards
Raj
Func<String, int, bool> predicate = (str, index) => str.Length == index;
String[] words = { "orange", "apple", "Elephant", "Ant", "star",
"and" };
IEnumerable<String> aWords = words.Where(predicate).Select(str
=> str);
foreach (String word in aWords)
Console.WriteLine(word);
Courtesy: MSDN
How and where value for parameter index of predicate passed?
Thank you
Regards
Raj