please help in creating simple c# Linq query
List<A> X;
class A{
public string phone;
...some other props
}
class B{
public string xyz;
public List<B> bobj;
}
class C{
public string pqr;
public B;
}
..
Now I have list of C;
List<C> tobesearched;
How to get all C i.e. List<C> from tobesearched for a phone which contains "123"
bobjshould be of typeList<A>. But anyway, what did you try so far? Can you show your query and describe results you got with that querytobesearchedlist does not include anyAnot sure how would you like to search for anyphonein it.