\[~tamas.vajk], startlingly the name of the preferred replacement class is the same in Java and C#, so I simply removed "in Java" from the description because I'm guessing the same code samples would work too...?
If it doesn't work, or if the bit about performance degrading as the string gets longer is not true in C#, let me know and I'll create a sub-task.