class obj { int typeId; //10 types 0-9 string uniqueString; //this is unique }
假设有一个包含100个obj元素的列表,但只有10个唯一的typeID。
有没有可能写一个LINQ查询返回objs列表中的10个唯一int?
https://stackoverflow.com/questions/6231360
相似问题