How to remove double quotes from string in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        string str = "\"c# vb.net c++ \"c\" java python\"";
        Console.WriteLine(str);
        
        str = str.Replace("\"", "");
        Console.WriteLine(str);
    }
}




/*
run:
 
"c# vb.net c++ "c" java python"
c# vb.net c++ c java python

*/

 



answered Feb 20, 2022 by avibootz

Related questions

1 answer 92 views
2 answers 141 views
2 answers 265 views
2 answers 320 views
320 views asked Oct 14, 2018 by avibootz
2 answers 213 views
1 answer 147 views
...