public String toString() {synchronized (lock) {return new String(buf, 0, count);}}

public String toString ( ) { synchronized ( lock ) { return new String ( buf , 0 , count ) ; } }
public override string ToString(){lock (@lock){return new string(buf, 0, count);}}
