How to add double quotes in a string C # and Vb.Net
The following example shows how to save the word «Hello World» including double quotes in a string.
C#
(use prefix \
)
string texto ="";
texto = "\"Hello World\"";
VB.NET
(Two single quotes together «»)
Dim texto as String = ""
texto = """Hello World"""
We hope its usefulness,
regards