Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27193

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

$
0
0
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 27193

Trending Articles