我使用LINQ从存储过程调用中检索到的对象集合中构建对象的树形结构。我想知道如果b)如果这样做确实有任何性能上的好处class MyEntity int ID { get; setParentID { get; set; } List<MyEntity> children = new List<MyEntity
给出两份长度相同的清单:_list2 = [7, 4, 0, 1, 5, 5, 7, 2, 2]output= [(0,3), (1,1), (3,0), (6,4), (6,5), (7,2)]output = list of (index ofan element in _list, where it appears in _li