I need help with string manipulation in c#.
I have string with words and empty spaces between them(I have more than one empty spaces between words, empty spaces are dynamic). I need to replace empty spaces with dash "-"
I have something like this:
string stringForManipulation = "word1 word2 word3";
I need to have this:
"word1-word2-word3"
Tnx