How to add single and double quotes to a string in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
    Public Shared Sub Main()
        Dim str As String = """It's a nice option!"" Save us some time."
		
        Console.WriteLine(str)
    End Sub
End Class
   
  
  
' run:
'
' "It's a nice option!" Save us some time.
'
 

 



answered Mar 12, 2025 by avibootz

Related questions

1 answer 92 views
4 answers 195 views
1 answer 100 views
1 answer 100 views
1 answer 107 views
3 answers 311 views
...