How to use interpolated strings to print variables in Console with VB.NET

1 Answer

0 votes
Module Module1

    Sub Main()
        Dim s As String = "VB.NET"
        Dim n As Integer = 100

        Console.WriteLine($"{s} {n}")
    End Sub

End Module


' run:
' 
' VB.NET 100

 



answered Oct 21, 2018 by avibootz
...