How do I Aggregate multiple IEnumerables of T

后端 未结 5 1766
春和景丽
春和景丽 2021-02-12 18:20

Given....

Public MasterList as IEnumerable(Of MasterItem)
Public Class MasterItem(Of T) 
    Public SubItems as IEnumerable(Of T)
End Class 

I

5条回答
  •  别跟我提以往
    2021-02-12 18:52

    I know in C# there is the yield operator for loops. Just iterate and yield return each sub item recursively. Apparently, there is no yield for VB, sorry.

提交回复
热议问题