public Parser() { _pool = new ParserWrapperPool(); ParserWrapper pw = _pool.GetParserWrapper(); supportedExtensions = pw.GetParserIDs(); _pool.ReleaseParserWrapper(pw); }
public TreeManager(string ParsersPath = "") { //if (ParsersPath == "") parserWrapper = new ParserWrapperPool(); //else //parserWrapper = new ParserWrapper(Environment.CurrentDirectory); ParserWrapper pw = parserWrapper.GetParserWrapper(); parserIDs = pw.GetParserIDs(); parserWrapper.ReleaseParserWrapper(pw); }