I've a data structure of something like this:
class A
{
List<B> data;
}
class B
{
C data;
}
class C
{
List<E> data;
}
class E
{
int Id;
string Name;
}
function GetEById(int id, List<A> data)
{
}
Now I need to build a Linq Lambda Expression where Id = something. I don't want to go for nested loops.
Any help will be greatfull.