Replace in Own C#

seer

Client
Регистрация
20.06.2012
Сообщения
26
Благодарностей
5
Баллы
8
Can I/How can I replace only first match on my Own C#?

example:
var before = "want to replace this, but not this";
var after = before..Replace("this", "replaced");
return after

result i want:
"want to replace replaced, but not this"

So basicaly, can I somehow determine match no. for replace?
 

seer

Client
Регистрация
20.06.2012
Сообщения
26
Благодарностей
5
Баллы
8

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)