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 94 views
2 answers 145 views
2 answers 267 views
2 answers 322 views
322 views asked Oct 14, 2018 by avibootz
2 answers 215 views
1 answer 151 views
...