KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
ILookup<string, string> someList; Cricket Sachin Dravid Dhoni Football Beckham Ronaldo Maradona bool status = someList.Where(x => x.Key == "Football").Where( y => y.Value == "Ronaldo") should return true bool status = someList.Where(x => x.Key == "Football").Where( y => y.Value == "Venus williams") should return false ILookup doesn't have value property, instead of looping over, is there a smarter way to get the result in few lines. the above code is not right, hoping something similar if its possible. I am new to Linq so learning better ways
Tags (comma-separated)
Save Edits
Cancel