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 182 views
2 answers 258 views
2 answers 365 views
2 answers 425 views
425 views asked Oct 14, 2018 by avibootz
2 answers 312 views
1 answer 228 views
...