我有以下列表,但我想要基于 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;