I have multiple words I want to replace with values, whats the best way to do this?
Example: This is what I have done but it feels and looks so wrong
Try this code:
string MyString ="This is the First Post to Stack overflow"; MyString = MyString.Replace("the", "My").Replace("to", "to the");
Result: MyString ="This is My First Post to the Stack overflow";
MyString ="This is My First Post to the Stack overflow";