Quantcast
Viewing all articles
Browse latest Browse all 27055

[RESOLVED] Adding items to structure....Two Lists Enumerable.Range

Hi. I have two lists that i want to combine items. So each index from each lists matches the two structure items.

Example Day = 0 index Week = 0 index

cant quite get it.

Code:

Private Function Items() As List(Of MyStructure)
        Return (From item In Enumerable.Range(0, DayOfWeekItems.Count)
                Select(Function(n As integer) New MyStructure With {
                  .Day = DayOfWeekItems(n),
                  .Week = Weekday(n)}).ToList()
    End Function


Viewing all articles
Browse latest Browse all 27055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>