How to append the String with quotes like"

  • Thread starter Thread starter karunakar
  • Start date Start date
K

karunakar

Hi All

How to append the string with Quotes

I want to show Output like this = "test"

I want to show the word like this "test"

Help me out

Thank you

Venu
 
In VB.NET: """test""" (escape a double quote with two consequtive dbl
quotes)

In C#: @"""test""" OR "\"test\""

Hi All

How to append the string with Quotes

I want to show Output like this = "test"

I want to show the word like this "test"

Help me out

Thank you

Venu
 
The less confuse way is to define a const that contains the double quote,
then concatenate the const with other strings.

Example:
private const string dq=@"""";
Label1.Text=dq+Test+dq;

John
 
Back
Top