views:

2863

answers:

0

Closed as a duplicate of How do I replace a string in .NET?

I need to replace a sequence in a string, but only once.

Part 1: What is the easiest way to do this in C#?

Part 2: What is the most efficient way to do this in C#?

Bonus points if they're both the same :D (not really, but I'll give you a cookie)