I'm trying to do a simple find using Lambda..
Usually I'd do this:
this.Continents.Find((Continents c) => c.ID == nations.regionID);
This usually works with no problem.
But I have a case where I don't have an ID value for Continents and its the index number which relates to the regionID...
For example:
In Continents I may have
Index number|String
[0] | Africa
[1] | Europe
In nations.regionID is may have
1
0
0
1
So using lambda I need to find based on the regionID to continent index number.
Lambda .Find on Index number to ID
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 8:38 AM EDT
I am not sure why do you want Lamda expression for this simple requirement. Since you want to get the value of Continents using index, then you can use directly like this
Regards,
Iftikar