I want to replace the first occurrence in a given string.
How can I accomplish this in .NET?
For anyone that doesn't mind a reference to Microsoft.VisualBasic, there is the Replace Method:
Microsoft.VisualBasic
string result = Microsoft.VisualBasic.Strings.Replace("111", "1", "0", 2, 1); // "101"