I have the following collection / table
Category Type Detail Cost
Auto Hybrid AC 80
Auto Hybrid Sunroof 100
Auto Standard AC 120
Motorcycle Standard Radio 60
Is there a way with linq to get this to pivot to look like this?
Category Type AC Radio Sunroof
Auto Hybrid 80 0 100
Auto Standard 120 0 0
Motorcycle Standard 0 60 0
The details are dynamic so I can't hard code the value in the linq.