LINQ - Get all items in a List within a List?

后端 未结 4 914
梦如初夏
梦如初夏 2021-02-18 16:28

I\'m currently working my way through the learning curve that is LINQ and I could really use some assistance. I don\'t know if what I want is possible, but if I had to wager, I

4条回答
  •  花落未央
    2021-02-18 16:57

    You want to use the SelectMany extension method.

    _tables.SelectMany(t => t.Indexes)
    

提交回复
热议问题