How to escape a double quote in a string using C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    static class Program
    {
        static void Main(string[] args)
        {
            string s = @"c# ""programming"" language";

            Console.WriteLine(s);
        }
    }
}


/*
run:
  
c# "programming" language
   
*/

 



answered Feb 7, 2017 by avibootz

Related questions

1 answer 185 views
1 answer 244 views
1 answer 192 views
...