java: public synchronized int lastIndexOf(String subString, int start) {return super.lastIndexOf(subString, start);}
C#: public override int lastIndexOf(string subString, int start){lock (this){return base.lastIndexOf(subString, start);}}