0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VBLINQで直積

Last updated at Posted at 2017-05-25
''' <summary>
''' http://qiita.com/shinaisan/items/d57bc231ac0a9a340184
''' </summary>
''' <remarks></remarks>
Module Module1

    Sub Main()

        Dim grades As String() = {"1年", "2年", "3年"}
        Dim classes As String() = {"A組", "B組", "C組"}

        Dim GradeClass = From g In grades
                         From c In classes
                         Select New With {.grade1 = g, .class1 = c, .text = (g & c)}

        For Each n In GradeClass
            Console.WriteLine(n.text)
        Next
        Console.ReadLine()
    End Sub

End Module
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?