次のリストがありますが、catID に基づいて個別の行が必要です。どうすればこれを達成できますか?
lst.AddRange(
(from xx in this.FreeInstructionItems
select new selectedCustomization()
{
TypeName = CategoryType.SpecialInstruction,
CategoryName = xx.InstructionInfo.CatName,
ItemName = xx.InstructionInfo.Description,
SourceID = xx.InstructionInfo.InstructionId,
CatID = xx.InstructionInfo.CatID,
Items = GetAllFreeItemNames(CategoryType.SpecialInstruction, xx.InstructionInfo.CatID)
}
).ToList()
);
return lst;