I come from C++ background and was wondering whether in C# exist any magic that would let me to do the following:
char[] buf = new char[128*1024*1024];
// filling the arr
buf = buf.ToString().Replace(oldstring, newstring).ToArray();
Is there a chance to do it fast (not write all things by hand) and efficient (have one copy of buffer)?