I have a generic list - SupportedTypeGroups.
Each SupportedTypeGroup has SupportedTypes property (generic list of SupportedType).
How to construct a Linq query to locate SupportedType with required name?
Assuming SupportedTypes is an IEnumerable<SupportedType>
from g in SupportedTypeGroups
where g.SupportedTypes.Where(t => t.Name == "magicName")
select g;
Assuming SupportedTypes is just a SupportedType property
from g in SupportedTypeGroups
where g.SupportedTypes.Name == "magicName"
select g;
Asasuming you just want the SupportedType
from tg in SupportedTypeGroups
from t in tg.SupportedTypes
where t.Name == "magicName"
select t;