I have a string like
string value = "Power:'{Comma}'";
I need to remove { and } symbols from the string.
I tried value.Replace(‘{‘, ‘ ‘); and value.Replace(‘}’, ‘ ‘); But this gives space. I dont want space, just want to remove the symbol.
Please suggest.
Use the overload that takes strings instead of characters, then you can replace with the empty string: