String processing with C # .NET
I need help handling strings in C #.
I have a line with words and an empty space between them (I have some empty spaces between words, empty spaces are dynamic). I need to replace empty spaces with a dash "-"
I have something like this:
string stringForManipulation = "word1 word2 word3";
I need to have this:
"word1-word2-word3"
Tpx
+3
source to share