LINQ to Objects - Grandparent, Parent, Child Relationship?

Your original query didn't compile when I went to test it. Here's a version that does: Dim coverages = _ From rl In oClaimsPolicy. RiskLocations _ From ri in rl.

RiskItems _ From rc in ri. RiskCoverages _ Select New Coverage With {. Level = "Coverage"} Now, to get the kind of results that you want try doing this: dim create As Func(Of String, IEnumerable(Of Coverage)) = _ Function (level) New Coverage() _ { New Coverage With { .

Level = level } } Dim coverages = _ From rl In oClaimsPolicy. RiskLocations _ From cl In create("Location"). Concat( _ From ri In rl.

RiskItems _ From ci In create(" Item"). Concat( _ From rc In ri. RiskCoverages _ From cc In create(" Coverage") _ Select cc) _ Select ci) _ Select cl It's a bunch of nested SelectMany & Concat expressions and it produces a list of Coverage objects like this: Location Item Coverage Location Item Coverage Item Coverage Is this what you're after?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions