I would like to replace specific String characters based on some integers value passed dynamically to its index.
Unfortunately, String.Replace() expects String value as its arguments. So could anyone please tell me how can I make my requirement possible?
It’s usually better with changing strings to use a StringBuilder. It has a StringBuilder.Replace method that can replace characters.