public synchronized DirectoryReader getIndexReader() {if (indexReader != null) {indexReader.incRef();}return indexReader;}

public synchronized DirectoryReader getIndexReader ( ) { if ( indexReader != null ) { indexReader . incRef ( ) ; } return indexReader ; }
public virtual DirectoryReader GetIndexReader(){lock (this){if (indexReader != null){indexReader.IncRef();}return indexReader;}}
