var txt = "\"";
txt = txt.Replace("\"", """);
Console.WriteLine(txt);
output: "
need: "
Is it possible to get the desired result?
var txt = "\"";
txt = txt.Replace("\"", """);
Console.WriteLine(txt);
output: "
need: "
Is it possible to get the desired result?
Try this:
var txt = "\"";
txt = txt.Replace("\"", """);
Console.WriteLine(txt);
And check the documentation:
https://learn.microsoft.com/en-us/dotnet/api/system.string.replace?view=net-5.0