Given the following string in C#, how would I insert a character in between each character in the string?
For example:
"Hello Sunshine"
would become
"H.e.l.l.o. .S.u.n.s.h.i.n.e"
What is the most efficient, fastest way of doing this in C#?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about:
This hides most of the complexity, and will use a
StringBuilderinternally.